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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src/] [two-op_add_rom-rd.s43] - Diff between revs 111 and 141

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 111 Rev 141
Line 28... Line 28...
/*                                                                           */
/*                                                                           */
/* Author(s):                                                                */
/* Author(s):                                                                */
/*             - Olivier Girard,    olgirard@gmail.com                       */
/*             - Olivier Girard,    olgirard@gmail.com                       */
/*                                                                           */
/*                                                                           */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/* $Rev: 111 $                                                                */
/* $Rev: 141 $                                                                */
/* $LastChangedBy: olivier.girard $                                          */
/* $LastChangedBy: olivier.girard $                                          */
/* $LastChangedDate: 2011-05-20 22:39:02 +0200 (Fri, 20 May 2011) $          */
/* $LastChangedDate: 2012-05-05 23:22:06 +0200 (Sat, 05 May 2012) $          */
/*===========================================================================*/
/*===========================================================================*/
 
 
.set    DMEM_BASE, (__data_start     )
.include "pmem_defs.asm"
.set    DMEM_200,  (__data_start+0x00)
 
.set    DMEM_202,  (__data_start+0x02)
 
.set    DMEM_204,  (__data_start+0x04)
 
.set    DMEM_206,  (__data_start+0x06)
 
.set    DMEM_208,  (__data_start+0x08)
 
.set    DMEM_20A,  (__data_start+0x0A)
 
.set    DMEM_20C,  (__data_start+0x0C)
 
.set    DMEM_20E,  (__data_start+0x0E)
 
.set    DMEM_210,  (__data_start+0x10)
 
.set    DMEM_212,  (__data_start+0x12)
 
.set    DMEM_214,  (__data_start+0x14)
 
.set    DMEM_216,  (__data_start+0x16)
 
.set    DMEM_218,  (__data_start+0x18)
 
.set    DMEM_21A,  (__data_start+0x1A)
 
.set    DMEM_21C,  (__data_start+0x1C)
 
.set    DMEM_21E,  (__data_start+0x1E)
 
.set    DMEM_220,  (__data_start+0x20)
 
 
 
 
 
.global main
.global main
 
 
main:
main:
        /* ---------------------- TEST WHEN SOURCE IS @Rn ------------------ */
        /* ---------------------- TEST WHEN SOURCE IS @Rn ------------------ */
Line 80... Line 62...
        mov   #data_aRn_0x1234, r7
        mov   #data_aRn_0x1234, r7
        add                @r7, 16(r6)     ;# Write 0x1234+0x5432=0x6666 to memory @0x0210
        add                @r7, 16(r6)     ;# Write 0x1234+0x5432=0x6666 to memory @0x0210
 
 
        mov            #0x8e1c, &DMEM_212
        mov            #0x8e1c, &DMEM_212
        mov   #data_aRn_0x5f12, r7
        mov   #data_aRn_0x5f12, r7
        add                @r7, aRn_EDE    ;# Write 0x5f12+0x8e1c=0xed2e to memory @0x0212
        add                @r7, aRn_EDE+PMEM_LENGTH    ;# Write 0x5f12+0x8e1c=0xed2e to memory @0x0212
 
 
        mov            #0x1541, &DMEM_214
        mov            #0x1541, &DMEM_214
        mov   #data_aRn_0x3112, r8
        mov   #data_aRn_0x3112, r8
        add                @r8, &aRn_TONY  ;# Write 0x3112+0x1541=0x4653 to memory @0x0214
        add                @r8, &aRn_TONY  ;# Write 0x3112+0x1541=0x4653 to memory @0x0214
 
 
Line 124... Line 106...
        add               @r10+, 16(r8)    ;# Write 0x1234+0x5432=0x6666 to memory @0x0210
        add               @r10+, 16(r8)    ;# Write 0x1234+0x5432=0x6666 to memory @0x0210
        add               @r10+, 16(r8)    ;# Write 0x2345+0x6666=0x89AB to memory @0x0210
        add               @r10+, 16(r8)    ;# Write 0x2345+0x6666=0x89AB to memory @0x0210
 
 
        mov             #0x8e1c, &DMEM_212
        mov             #0x8e1c, &DMEM_212
        mov   #data_aRni_0x5f12, r8
        mov   #data_aRni_0x5f12, r8
        add                @r8+, aRni_EDE   ;# Write 0x5f12+0x8e1c=0xed2e to memory @0x0212
        add                @r8+, aRni_EDE+PMEM_LENGTH   ;# Write 0x5f12+0x8e1c=0xed2e to memory @0x0212
        add                @r8+, aRni_EDE   ;# Write 0x6345+0xed2e=0x5073 to memory @0x0212
        add                @r8+, aRni_EDE+PMEM_LENGTH   ;# Write 0x6345+0xed2e=0x5073 to memory @0x0212
 
 
        mov             #0x1541, &DMEM_214
        mov             #0x1541, &DMEM_214
        mov   #data_aRni_0x3112, r9
        mov   #data_aRni_0x3112, r9
        add                @r9+, &aRni_TONY ;# Write 0x3112+0x1541=0x4653 to memory @0x0214
        add                @r9+, &aRni_TONY ;# Write 0x3112+0x1541=0x4653 to memory @0x0214
        add                @r9+, &aRni_TONY ;# Write 0x1123+0x4653=0x5776 to memory @0x0214
        add                @r9+, &aRni_TONY ;# Write 0x1123+0x4653=0x5776 to memory @0x0214
Line 160... Line 142...
        mov          #DMEM_202, r8
        mov          #DMEM_202, r8
        add             16(r7), 18(r8)     ;# Write 0x4241+0x1535=0x5776 to memory @0x214
        add             16(r7), 18(r8)     ;# Write 0x4241+0x1535=0x5776 to memory @0x214
 
 
        mov            #0x2143, &DMEM_220
        mov            #0x2143, &DMEM_220
        mov   #data_xRn_0x7238, r7
        mov   #data_xRn_0x7238, r7
        add              4(r7), xRn_EDE    ;# Write 0x7238+0x2143=0x937b to memory @0x220
        add              4(r7), xRn_EDE+PMEM_LENGTH    ;# Write 0x7238+0x2143=0x937b to memory @0x220
 
 
        mov            #0x1432, &DMEM_208
        mov            #0x1432, &DMEM_208
        mov   #data_xRn_0x98b2, r4
        mov   #data_xRn_0x98b2, r4
        add             22(r4), &xRn_TONY  ;# Write 0x0x98b2+0x1432=0xace4 to memory @0x208
        add             22(r4), &xRn_TONY  ;# Write 0x0x98b2+0x1432=0xace4 to memory @0x208
 
 
Line 193... Line 175...
        mov              #0x0000, &DMEM_208
        mov              #0x0000, &DMEM_208
        add      data_EDE_0xf712, 18(r8)      ;# Write 0xf712+0x1234=0x0946 to memory @0x214
        add      data_EDE_0xf712, 18(r8)      ;# Write 0xf712+0x1234=0x0946 to memory @0x214
 
 
        mov              #0x058a, &DMEM_216
        mov              #0x058a, &DMEM_216
        mov              #0x1234, &DMEM_208
        mov              #0x1234, &DMEM_208
        add      data_EDE_0xb3a9, EDE_EDE     ;# Write 0xb3a9+0x058a=0xb933 to memory @0x216
        add      data_EDE_0xb3a9, EDE_EDE+PMEM_LENGTH     ;# Write 0xb3a9+0x058a=0xb933 to memory @0x216
 
 
        mov              #0xA738, &DMEM_212
        mov              #0xA738, &DMEM_212
        mov              #0x1234, &DMEM_20A
        mov              #0x1234, &DMEM_20A
        add      data_EDE_0x837a, &EDE_TONY   ;# Write 0x837A+0xA738=0x2ab2 to memory @0x212
        add      data_EDE_0x837a, &EDE_TONY   ;# Write 0x837A+0xA738=0x2ab2 to memory @0x212
 
 
Line 226... Line 208...
        mov                #0x1234, &DMEM_206
        mov                #0x1234, &DMEM_206
        add      &data_aEDE_0x481c, 18(r7)      ;# Write 0x481c+0x3ab5=0x82d1 to memory @0x214
        add      &data_aEDE_0x481c, 18(r7)      ;# Write 0x481c+0x3ab5=0x82d1 to memory @0x214
 
 
        mov                #0x6e2f, &DMEM_218
        mov                #0x6e2f, &DMEM_218
        mov                #0x1234, &DMEM_208
        mov                #0x1234, &DMEM_208
        add      &data_aEDE_0x5c1f, aEDE_EDE    ;# Write 0x5c1f+0x6e2f=0xca4e to memory @0x218
        add      &data_aEDE_0x5c1f, aEDE_EDE+PMEM_LENGTH    ;# Write 0x5c1f+0x6e2f=0xca4e to memory @0x218
 
 
        mov                #0x51ca, &DMEM_202
        mov                #0x51ca, &DMEM_202
        mov                #0x1234, &DMEM_20A
        mov                #0x1234, &DMEM_20A
        add      &data_aEDE_0xc16e, &aEDE_TONY  ;# Write 0xc16e+0x51ca=0x1338 to memory @0x202
        add      &data_aEDE_0xc16e, &aEDE_TONY  ;# Write 0xc16e+0x51ca=0x1338 to memory @0x202
 
 

powered by: WebSVN 2.1.0

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