URL
https://opencores.org/ocsvn/openmsp430/openmsp430/trunk
Show entire file |
Details |
Blame |
View Log
Rev 141 |
Rev 200 |
Line 27... |
Line 27... |
/* */
|
/* */
|
/* Author(s): */
|
/* Author(s): */
|
/* - Olivier Girard, olgirard@gmail.com */
|
/* - Olivier Girard, olgirard@gmail.com */
|
/* */
|
/* */
|
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
/* $Rev: 141 $ */
|
/* $Rev: 200 $ */
|
/* $LastChangedBy: olivier.girard $ */
|
/* $LastChangedBy: olivier.girard $ */
|
/* $LastChangedDate: 2012-05-05 23:22:06 +0200 (Sat, 05 May 2012) $ */
|
/* $LastChangedDate: 2015-01-21 23:01:31 +0100 (Wed, 21 Jan 2015) $ */
|
/*===========================================================================*/
|
/*===========================================================================*/
|
|
|
.include "pmem_defs.asm"
|
.include "pmem_defs.asm"
|
|
|
.global main
|
.global main
|
Line 118... |
Line 118... |
mov #0x4000, r15
|
mov #0x4000, r15
|
|
|
|
|
# Addressing mode: EDE
|
# Addressing mode: EDE
|
#------------------------
|
#------------------------
|
.set EDE_218, DMEM_218
|
.set EDE_218, DMEM_218+PMEM_EDE_LENGTH
|
.set EDE_21A, DMEM_21A
|
.set EDE_21A, DMEM_21A+PMEM_EDE_LENGTH
|
.set EDE_21C, DMEM_21C
|
.set EDE_21C, DMEM_21C+PMEM_EDE_LENGTH
|
.set EDE_21E, DMEM_21E
|
.set EDE_21E, DMEM_21E+PMEM_EDE_LENGTH
|
|
|
mov #0x0102, r2 ;# Test 1
|
mov #0x0102, r2 ;# Test 1
|
mov #0x7524, &DMEM_218
|
mov #0x7524, &DMEM_218
|
mov #0xaaaa, &DMEM_21A
|
mov #0xaaaa, &DMEM_21A
|
swpb EDE_218+PMEM_LENGTH ;# SWPB (mem0c=0x7524 => {mem0c=0x2475)
|
swpb EDE_218 ;# SWPB (mem0c=0x7524 => {mem0c=0x2475)
|
mov r2, r5
|
mov r2, r5
|
|
|
mov #0x0005, r2 ;# Test 2
|
mov #0x0005, r2 ;# Test 2
|
mov #0x1cb6, &DMEM_21A
|
mov #0x1cb6, &DMEM_21A
|
mov #0xaaaa, &DMEM_21C
|
mov #0xaaaa, &DMEM_21C
|
swpb EDE_21A+PMEM_LENGTH ;# SWPB (mem0d=0x1cb6 => {mem0d=0xb61c)
|
swpb EDE_21A ;# SWPB (mem0d=0x1cb6 => {mem0d=0xb61c)
|
mov r2, r7
|
mov r2, r7
|
|
|
mov #0x5000, r15
|
mov #0x5000, r15
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.