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

Subversion Repositories openmsp430

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

Go to most recent revision | 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     #0x0000, r2        ;# Test 1
        mov     #0x0000, r2        ;# Test 1
        mov     #0x3332, &DMEM_218
        mov     #0x3332, &DMEM_218
        mov     #0xaaaa, &DMEM_21A
        mov     #0xaaaa, &DMEM_21A
        rrc     EDE_218+PMEM_LENGTH            ;# RRC ({C=0, mem0c=0x3332}  => {mem0c=0x1999, C=0})
        rrc     EDE_218            ;# RRC ({C=0, mem0c=0x3332}  => {mem0c=0x1999, C=0})
        mov          r2, r5
        mov          r2, r5
 
 
        mov     #0x0000, r2        ;# Test 2
        mov     #0x0000, r2        ;# Test 2
        mov     #0x3333, &DMEM_21A
        mov     #0x3333, &DMEM_21A
        mov     #0xaaaa, &DMEM_21C
        mov     #0xaaaa, &DMEM_21C
        rrc     EDE_21A+PMEM_LENGTH            ;# RRC ({C=0, mem0d=0x3333}  => {mem0d=0x1999, C=1})
        rrc     EDE_21A            ;# RRC ({C=0, mem0d=0x3333}  => {mem0d=0x1999, C=1})
        mov          r2, r7
        mov          r2, r7
 
 
        mov     #0x0001, r2        ;# Test 3
        mov     #0x0001, r2        ;# Test 3
        mov     #0x3332, &DMEM_21C
        mov     #0x3332, &DMEM_21C
        mov     #0xaaaa, &DMEM_21E
        mov     #0xaaaa, &DMEM_21E
        rrc     EDE_21C+PMEM_LENGTH            ;# RRC ({C=1, mem0e=0x3332}  => {mem0e=0x9999, C=0})
        rrc     EDE_21C            ;# RRC ({C=1, mem0e=0x3332}  => {mem0e=0x9999, C=0})
        mov          r2, r9
        mov          r2, r9
 
 
        mov     #0x0001, r2        ;# Test 4
        mov     #0x0001, r2        ;# Test 4
        mov     #0x3333, &DMEM_21E
        mov     #0x3333, &DMEM_21E
        mov     #0xaaaa, &DMEM_220
        mov     #0xaaaa, &DMEM_220
        rrc     EDE_21E+PMEM_LENGTH            ;# RRC ({C=1, mem0f=0x3333}  => {mem0f=0x9999, C=1})
        rrc     EDE_21E            ;# RRC ({C=1, mem0f=0x3333}  => {mem0f=0x9999, 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     #0x0000, r2        ;# Test 1
        mov     #0x0000, r2        ;# Test 1
        mov     #0x2532, &DMEM_230
        mov     #0x2532, &DMEM_230
        mov     #0xaaaa, &DMEM_232
        mov     #0xaaaa, &DMEM_232
        rrc.b   EDE_230+PMEM_LENGTH            ;# RRC ({C=0, mem18=0x2532}  => {mem18=0x2519, C=0})
        rrc.b   EDE_230            ;# RRC ({C=0, mem18=0x2532}  => {mem18=0x2519, C=0})
        mov          r2, r5
        mov          r2, r5
 
 
        mov     #0x0000, r2        ;# Test 2
        mov     #0x0000, r2        ;# Test 2
        mov     #0x2533, &DMEM_232
        mov     #0x2533, &DMEM_232
        mov     #0xaaaa, &DMEM_234
        mov     #0xaaaa, &DMEM_234
        rrc.b   EDE_232+PMEM_LENGTH            ;# RRC ({C=0, mem19=0x2533}  => {mem19=0x2519, C=1})
        rrc.b   EDE_232            ;# RRC ({C=0, mem19=0x2533}  => {mem19=0x2519, C=1})
        mov          r2, r7
        mov          r2, r7
 
 
        mov     #0x0001, r2        ;# Test 3
        mov     #0x0001, r2        ;# Test 3
        mov     #0x2532, &DMEM_234
        mov     #0x2532, &DMEM_234
        mov     #0xaaaa, &DMEM_236
        mov     #0xaaaa, &DMEM_236
        rrc.b   EDE_234+PMEM_LENGTH            ;# RRC ({C=1, mem1a=0x2532}  => {mem1a=0x2599, C=0})
        rrc.b   EDE_234            ;# RRC ({C=1, mem1a=0x2532}  => {mem1a=0x2599, C=0})
        mov          r2, r9
        mov          r2, r9
 
 
        mov     #0x0001, r2        ;# Test 4
        mov     #0x0001, r2        ;# Test 4
        mov     #0x2533, &DMEM_236
        mov     #0x2533, &DMEM_236
        mov     #0xaaaa, &DMEM_238
        mov     #0xaaaa, &DMEM_238
        rrc.b   EDE_236+PMEM_LENGTH            ;# RRC ({C=1, mem1b=0x2533}  => {mem1b=0x2599, C=1})
        rrc.b   EDE_236            ;# RRC ({C=1, mem1b=0x2533}  => {mem1b=0x2599, 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     #0x0000, r2        ;# Test 1
        mov     #0x0000, r2        ;# Test 1
        mov     #0x3225, &DMEM_238
        mov     #0x3225, &DMEM_238
        mov     #0xaaaa, &DMEM_23A
        mov     #0xaaaa, &DMEM_23A
        rrc.b   EDE_239+PMEM_LENGTH            ;# RRC ({C=0, mem1c=0x3225}  => {mem1c=0x1925, C=0})
        rrc.b   EDE_239            ;# RRC ({C=0, mem1c=0x3225}  => {mem1c=0x1925, C=0})
        mov          r2, r5
        mov          r2, r5
 
 
        mov     #0x0000, r2        ;# Test 2
        mov     #0x0000, r2        ;# Test 2
        mov     #0x3325, &DMEM_23A
        mov     #0x3325, &DMEM_23A
        mov     #0xaaaa, &DMEM_23C
        mov     #0xaaaa, &DMEM_23C
        rrc.b   EDE_23B+PMEM_LENGTH            ;# RRC ({C=0, mem1d=0x3325}  => {mem1d=0x1925, C=1})
        rrc.b   EDE_23B            ;# RRC ({C=0, mem1d=0x3325}  => {mem1d=0x1925, C=1})
        mov          r2, r7
        mov          r2, r7
 
 
        mov     #0x0001, r2        ;# Test 3
        mov     #0x0001, r2        ;# Test 3
        mov     #0x3225, &DMEM_23C
        mov     #0x3225, &DMEM_23C
        mov     #0xaaaa, &DMEM_23E
        mov     #0xaaaa, &DMEM_23E
        rrc.b   EDE_23D+PMEM_LENGTH            ;# RRC ({C=1, mem1e=0x3225}  => {mem1e=0x9925, C=0})
        rrc.b   EDE_23D            ;# RRC ({C=1, mem1e=0x3225}  => {mem1e=0x9925, C=0})
        mov          r2, r9
        mov          r2, r9
 
 
        mov     #0x0001, r2        ;# Test 4
        mov     #0x0001, r2        ;# Test 4
        mov     #0x3325, &DMEM_23E
        mov     #0x3325, &DMEM_23E
        mov     #0xaaaa, &DMEM_240
        mov     #0xaaaa, &DMEM_240
        rrc.b   EDE_23F+PMEM_LENGTH            ;# RRC ({C=1, mem1f=0x3325}  => {mem1f=0x9925, C=1})
        rrc.b   EDE_23F            ;# RRC ({C=1, mem1f=0x3325}  => {mem1f=0x9925, 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.