OpenCores
URL https://opencores.org/ocsvn/openmsp430/openmsp430/trunk

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src/] [sing-op_rra.s43] - Diff between revs 141 and 200

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 170... Line 170...
        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     #0x0001, r2        ;# Test 1
        mov     #0x0001, r2        ;# Test 1
        mov     #0x7332, &DMEM_218
        mov     #0x7332, &DMEM_218
        mov     #0xaaaa, &DMEM_21A
        mov     #0xaaaa, &DMEM_21A
        rra     EDE_218+PMEM_LENGTH            ;# RRA ({mem0c=0x7332}  => {mem0c=0x3999, C=0})
        rra     EDE_218            ;# RRA ({mem0c=0x7332}  => {mem0c=0x3999, C=0})
        mov          r2, r5
        mov          r2, r5
 
 
        mov     #0x0001, r2        ;# Test 2
        mov     #0x0001, r2        ;# Test 2
        mov     #0x7333, &DMEM_21A
        mov     #0x7333, &DMEM_21A
        mov     #0xaaaa, &DMEM_21C
        mov     #0xaaaa, &DMEM_21C
        rra     EDE_21A+PMEM_LENGTH            ;# RRA ({mem0d=0x7333}  => {mem0d=0x3999, C=1})
        rra     EDE_21A            ;# RRA ({mem0d=0x7333}  => {mem0d=0x3999, C=1})
        mov          r2, r7
        mov          r2, r7
 
 
        mov     #0x0000, r2        ;# Test 3
        mov     #0x0000, r2        ;# Test 3
        mov     #0x8332, &DMEM_21C
        mov     #0x8332, &DMEM_21C
        mov     #0xaaaa, &DMEM_21E
        mov     #0xaaaa, &DMEM_21E
        rra     EDE_21C+PMEM_LENGTH            ;# RRA ({mem0e=0x8332}  => {mem0e=0xc199, C=0})
        rra     EDE_21C            ;# RRA ({mem0e=0x8332}  => {mem0e=0xc199, C=0})
        mov          r2, r9
        mov          r2, r9
 
 
        mov     #0x0000, r2        ;# Test 4
        mov     #0x0000, r2        ;# Test 4
        mov     #0x8333, &DMEM_21E
        mov     #0x8333, &DMEM_21E
        mov     #0xaaaa, &DMEM_220
        mov     #0xaaaa, &DMEM_220
        rra     EDE_21E+PMEM_LENGTH            ;# RRA ({mem0f=0x8333}  => {mem0f=0xc199, C=1})
        rra     EDE_21E            ;# RRA ({mem0f=0x8333}  => {mem0f=0xc199, C=1})
        mov          r2, r11
        mov          r2, r11
 
 
        mov     #0x5000, r15
        mov     #0x5000, r15
 
 
 
 
Line 479... Line 479...
        mov     #0xB001, r15
        mov     #0xB001, r15
 
 
 
 
        # Addressing mode: EDE (Low Byte)
        # Addressing mode: EDE (Low Byte)
        #---------------------------------
        #---------------------------------
.set   EDE_230,  DMEM_230
.set   EDE_230,  DMEM_230+PMEM_EDE_LENGTH
.set   EDE_232,  DMEM_232
.set   EDE_232,  DMEM_232+PMEM_EDE_LENGTH
.set   EDE_234,  DMEM_234
.set   EDE_234,  DMEM_234+PMEM_EDE_LENGTH
.set   EDE_236,  DMEM_236
.set   EDE_236,  DMEM_236+PMEM_EDE_LENGTH
 
 
        mov     #0x0001, r2        ;# Test 1
        mov     #0x0001, r2        ;# Test 1
        mov     #0x2572, &DMEM_230
        mov     #0x2572, &DMEM_230
        mov     #0xaaaa, &DMEM_232
        mov     #0xaaaa, &DMEM_232
        rra.b   EDE_230+PMEM_LENGTH            ;# RRA ({mem18=0x2572}  => {mem18=0x2539, C=0})
        rra.b   EDE_230            ;# RRA ({mem18=0x2572}  => {mem18=0x2539, C=0})
        mov          r2, r5
        mov          r2, r5
 
 
        mov     #0x0001, r2        ;# Test 2
        mov     #0x0001, r2        ;# Test 2
        mov     #0x2573, &DMEM_232
        mov     #0x2573, &DMEM_232
        mov     #0xaaaa, &DMEM_234
        mov     #0xaaaa, &DMEM_234
        rra.b   EDE_232+PMEM_LENGTH            ;# RRA ({mem19=0x2573}  => {mem19=0x2539, C=1})
        rra.b   EDE_232            ;# RRA ({mem19=0x2573}  => {mem19=0x2539, C=1})
        mov          r2, r7
        mov          r2, r7
 
 
        mov     #0x0000, r2        ;# Test 3
        mov     #0x0000, r2        ;# Test 3
        mov     #0x2582, &DMEM_234
        mov     #0x2582, &DMEM_234
        mov     #0xaaaa, &DMEM_236
        mov     #0xaaaa, &DMEM_236
        rra.b   EDE_234+PMEM_LENGTH            ;# RRA ({mem1a=0x2582}  => {mem1a=0x25c1, C=0})
        rra.b   EDE_234            ;# RRA ({mem1a=0x2582}  => {mem1a=0x25c1, C=0})
        mov          r2, r9
        mov          r2, r9
 
 
        mov     #0x0000, r2        ;# Test 4
        mov     #0x0000, r2        ;# Test 4
        mov     #0x2583, &DMEM_236
        mov     #0x2583, &DMEM_236
        mov     #0xaaaa, &DMEM_238
        mov     #0xaaaa, &DMEM_238
        rra.b   EDE_236+PMEM_LENGTH            ;# RRA ({mem1b=0x2583}  => {mem1b=0x25c1, C=1})
        rra.b   EDE_236            ;# RRA ({mem1b=0x2583}  => {mem1b=0x25c1, C=1})
        mov          r2, r11
        mov          r2, r11
 
 
        mov     #0xC000, r15
        mov     #0xC000, r15
 
 
        # Addressing mode: EDE (High Byte)
        # Addressing mode: EDE (High Byte)
        #----------------------------------
        #----------------------------------
.set   EDE_239,  DMEM_239
.set   EDE_239,  DMEM_239+PMEM_EDE_LENGTH
.set   EDE_23B,  DMEM_23B
.set   EDE_23B,  DMEM_23B+PMEM_EDE_LENGTH
.set   EDE_23D,  DMEM_23D
.set   EDE_23D,  DMEM_23D+PMEM_EDE_LENGTH
.set   EDE_23F,  DMEM_23F
.set   EDE_23F,  DMEM_23F+PMEM_EDE_LENGTH
 
 
        mov     #0x0001, r2        ;# Test 1
        mov     #0x0001, r2        ;# Test 1
        mov     #0x7225, &DMEM_238
        mov     #0x7225, &DMEM_238
        mov     #0xaaaa, &DMEM_23A
        mov     #0xaaaa, &DMEM_23A
        rra.b   EDE_239+PMEM_LENGTH            ;# RRA ({mem1c=0x7225}  => {mem1c=0x3925, C=0})
        rra.b   EDE_239            ;# RRA ({mem1c=0x7225}  => {mem1c=0x3925, C=0})
        mov          r2, r5
        mov          r2, r5
 
 
        mov     #0x0001, r2        ;# Test 2
        mov     #0x0001, r2        ;# Test 2
        mov     #0x7325, &DMEM_23A
        mov     #0x7325, &DMEM_23A
        mov     #0xaaaa, &DMEM_23C
        mov     #0xaaaa, &DMEM_23C
        rra.b   EDE_23B+PMEM_LENGTH            ;# RRA ({mem1d=0x7325}  => {mem1d=0x3925, C=1})
        rra.b   EDE_23B            ;# RRA ({mem1d=0x7325}  => {mem1d=0x3925, C=1})
        mov          r2, r7
        mov          r2, r7
 
 
        mov     #0x0000, r2        ;# Test 3
        mov     #0x0000, r2        ;# Test 3
        mov     #0x8225, &DMEM_23C
        mov     #0x8225, &DMEM_23C
        mov     #0xaaaa, &DMEM_23E
        mov     #0xaaaa, &DMEM_23E
        rra.b   EDE_23D+PMEM_LENGTH            ;# RRA ({mem1e=0x8225}  => {mem1e=0xc125, C=0})
        rra.b   EDE_23D            ;# RRA ({mem1e=0x8225}  => {mem1e=0xc125, C=0})
        mov          r2, r9
        mov          r2, r9
 
 
        mov     #0x0000, r2        ;# Test 4
        mov     #0x0000, r2        ;# Test 4
        mov     #0x8325, &DMEM_23E
        mov     #0x8325, &DMEM_23E
        mov     #0xaaaa, &DMEM_240
        mov     #0xaaaa, &DMEM_240
        rra.b   EDE_23F+PMEM_LENGTH            ;# RRA ({mem1f=0x8325}  => {mem1f=0xc125, C=1})
        rra.b   EDE_23F            ;# RRA ({mem1f=0x8325}  => {mem1f=0xc125, C=1})
        mov          r2, r11
        mov          r2, r11
 
 
        mov     #0xC001, r15
        mov     #0xC001, r15
 
 
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.