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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src/] [two-op_add-b.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 56... Line 56...
 
 
        mov     #0x1000, r15
        mov     #0x1000, r15
 
 
 
 
        /* ---------------------- TEST WHEN SOURCE IS Rn ------------------- */
        /* ---------------------- TEST WHEN SOURCE IS Rn ------------------- */
.set   Rn_EDEL,  DMEM_214
.set   Rn_EDEL,  DMEM_214+PMEM_EDE_LENGTH
.set   Rn_EDEH,  DMEM_217
.set   Rn_EDEH,  DMEM_217+PMEM_EDE_LENGTH
.set   Rn_TONYL, DMEM_218
.set   Rn_TONYL, DMEM_218
.set   Rn_TONYH, DMEM_21B
.set   Rn_TONYH, DMEM_21B
 
 
        mov     #0x4455, r4
        mov     #0x4455, r4
        mov     #0x6677, r5
        mov     #0x6677, r5
Line 75... Line 75...
        mov     #0x5678, r6
        mov     #0x5678, r6
        add.b        r6, 19(r5)    ;# Write 0x55+0x78=0xcd to memory @0x0213
        add.b        r6, 19(r5)    ;# Write 0x55+0x78=0xcd to memory @0x0213
 
 
        mov     #0x1122, &DMEM_214
        mov     #0x1122, &DMEM_214
        mov     #0xabcd, r7
        mov     #0xabcd, r7
        add.b        r7, Rn_EDEL+PMEM_LENGTH   ;# Write 0x22+0xcd=0xef to memory @0x0214
        add.b        r7, Rn_EDEL   ;# Write 0x22+0xcd=0xef to memory @0x0214
        mov     #0x99aa, &DMEM_216
        mov     #0x99aa, &DMEM_216
        mov     #0xef12, r7
        mov     #0xef12, r7
        add.b        r7, Rn_EDEH+PMEM_LENGTH   ;# Write 0x99+0x12=0xab to memory @0x0217
        add.b        r7, Rn_EDEH   ;# Write 0x99+0x12=0xab to memory @0x0217
 
 
        mov     #0x7788, &DMEM_218
        mov     #0x7788, &DMEM_218
        mov     #0x1f2e, r8
        mov     #0x1f2e, r8
        add.b        r8, &Rn_TONYL ;# Write 0x88+0x2e=0xb6 to memory @0x0218
        add.b        r8, &Rn_TONYL ;# Write 0x88+0x2e=0xb6 to memory @0x0218
        mov     #0x3344, &DMEM_21A
        mov     #0x3344, &DMEM_21A
Line 91... Line 91...
 
 
        mov     #0x2000, r15
        mov     #0x2000, r15
 
 
 
 
        /* ---------------------- TEST WHEN SOURCE IS @Rn ------------------ */
        /* ---------------------- TEST WHEN SOURCE IS @Rn ------------------ */
.set   aRn_EDE_218,  DMEM_218
.set   aRn_EDE_218,  DMEM_218+PMEM_EDE_LENGTH
.set   aRn_EDE_21B,  DMEM_21B
.set   aRn_EDE_21B,  DMEM_21B+PMEM_EDE_LENGTH
.set   aRn_EDE_21C,  DMEM_21C
.set   aRn_EDE_21C,  DMEM_21C+PMEM_EDE_LENGTH
.set   aRn_EDE_21F,  DMEM_21F
.set   aRn_EDE_21F,  DMEM_21F+PMEM_EDE_LENGTH
 
 
.set   aRn_TONY_220, DMEM_220
.set   aRn_TONY_220, DMEM_220
.set   aRn_TONY_223, DMEM_223
.set   aRn_TONY_223, DMEM_223
.set   aRn_TONY_224, DMEM_224
.set   aRn_TONY_224, DMEM_224
.set   aRn_TONY_227, DMEM_227
.set   aRn_TONY_227, DMEM_227
Line 140... Line 140...
        mov     #0x22dd, &DMEM_21A
        mov     #0x22dd, &DMEM_21A
        mov     #0x1de2, &DMEM_21C
        mov     #0x1de2, &DMEM_21C
        mov     #0xd12e, &DMEM_21E
        mov     #0xd12e, &DMEM_21E
 
 
        mov   #DMEM_200, r8
        mov   #DMEM_200, r8
        add.b       @r8, aRn_EDE_218+PMEM_LENGTH ;# Write 0xaa+0xee=0x98 to memory @0x218
        add.b       @r8, aRn_EDE_218 ;# Write 0xaa+0xee=0x98 to memory @0x218
        mov   #DMEM_202, r8
        mov   #DMEM_202, r8
        add.b       @r8, aRn_EDE_21B+PMEM_LENGTH ;# Write 0xcc+0x22=0xee to memory @0x21B
        add.b       @r8, aRn_EDE_21B ;# Write 0xcc+0x22=0xee to memory @0x21B
        mov   #DMEM_205, r8
        mov   #DMEM_205, r8
        add.b       @r8, aRn_EDE_21C+PMEM_LENGTH ;# Write 0xdd+0xe2=0xbf to memory @0x21C
        add.b       @r8, aRn_EDE_21C ;# Write 0xdd+0xe2=0xbf to memory @0x21C
        mov   #DMEM_207, r8
        mov   #DMEM_207, r8
        add.b       @r8, aRn_EDE_21F+PMEM_LENGTH ;# Write 0xff+0xd1=0xd0 to memory @0x21F
        add.b       @r8, aRn_EDE_21F ;# Write 0xff+0xd1=0xd0 to memory @0x21F
 
 
        mov     #0x2233, &DMEM_200
        mov     #0x2233, &DMEM_200
        mov     #0x4455, &DMEM_202
        mov     #0x4455, &DMEM_202
        mov     #0x6677, &DMEM_204
        mov     #0x6677, &DMEM_204
        mov     #0x8899, &DMEM_206
        mov     #0x8899, &DMEM_206
Line 171... Line 171...
 
 
        mov     #0x3000, r15
        mov     #0x3000, r15
 
 
 
 
        /* ---------------------- TEST WHEN SOURCE IS @Rn+ ----------------- */
        /* ---------------------- TEST WHEN SOURCE IS @Rn+ ----------------- */
.set   aRni_EDE_218,  DMEM_218
.set   aRni_EDE_218,  DMEM_218+PMEM_EDE_LENGTH
.set   aRni_EDE_21B,  DMEM_21B
.set   aRni_EDE_21B,  DMEM_21B+PMEM_EDE_LENGTH
.set   aRni_EDE_21C,  DMEM_21C
.set   aRni_EDE_21C,  DMEM_21C+PMEM_EDE_LENGTH
.set   aRni_EDE_21F,  DMEM_21F
.set   aRni_EDE_21F,  DMEM_21F+PMEM_EDE_LENGTH
 
 
.set   aRni_TONY_220, DMEM_220
.set   aRni_TONY_220, DMEM_220
.set   aRni_TONY_223, DMEM_223
.set   aRni_TONY_223, DMEM_223
.set   aRni_TONY_224, DMEM_224
.set   aRni_TONY_224, DMEM_224
.set   aRni_TONY_227, DMEM_227
.set   aRni_TONY_227, DMEM_227
Line 220... Line 220...
        mov     #0xeeff, &DMEM_21A
        mov     #0xeeff, &DMEM_21A
        mov     #0x1e2f, &DMEM_21C
        mov     #0x1e2f, &DMEM_21C
        mov     #0xe1f2, &DMEM_21E
        mov     #0xe1f2, &DMEM_21E
 
 
        mov   #DMEM_200, r10
        mov   #DMEM_200, r10
        add.b     @r10+, aRni_EDE_218+PMEM_LENGTH ;# Write 0xaa+0x22=0xcc to memory @0x218
        add.b     @r10+, aRni_EDE_218 ;# Write 0xaa+0x22=0xcc to memory @0x218
        mov.b     @r10+, r11
        mov.b     @r10+, r11
        add.b     @r10+, aRni_EDE_21B+PMEM_LENGTH ;# Write 0xcc+0xee=0xba to memory @0x21B
        add.b     @r10+, aRni_EDE_21B ;# Write 0xcc+0xee=0xba to memory @0x21B
        mov       @r10+, r11
        mov       @r10+, r11
        add.b     @r10+, aRni_EDE_21C+PMEM_LENGTH ;# Write 0xdd+0x2f=0x0c to memory @0x21C
        add.b     @r10+, aRni_EDE_21C ;# Write 0xdd+0x2f=0x0c to memory @0x21C
        mov.b     @r10+, r11
        mov.b     @r10+, r11
        add.b     @r10+, aRni_EDE_21F+PMEM_LENGTH ;# Write 0xff+0xe1=0xe0 to memory @0x21F
        add.b     @r10+, aRni_EDE_21F ;# Write 0xff+0xe1=0xe0 to memory @0x21F
 
 
        mov     #0x2233, &DMEM_200
        mov     #0x2233, &DMEM_200
        mov     #0x4455, &DMEM_202
        mov     #0x4455, &DMEM_202
        mov     #0x6677, &DMEM_204
        mov     #0x6677, &DMEM_204
        mov     #0x8899, &DMEM_206
        mov     #0x8899, &DMEM_206
Line 251... Line 251...
 
 
        mov     #0x4000, r15
        mov     #0x4000, r15
 
 
 
 
        /* ---------------------- TEST WHEN SOURCE IS #N ------------------- */
        /* ---------------------- TEST WHEN SOURCE IS #N ------------------- */
.set   N_EDE_218,  DMEM_218
.set   N_EDE_218,  DMEM_218+PMEM_EDE_LENGTH
.set   N_EDE_21B,  DMEM_21B
.set   N_EDE_21B,  DMEM_21B+PMEM_EDE_LENGTH
.set   N_EDE_21C,  DMEM_21C
.set   N_EDE_21C,  DMEM_21C+PMEM_EDE_LENGTH
.set   N_EDE_21F,  DMEM_21F
.set   N_EDE_21F,  DMEM_21F+PMEM_EDE_LENGTH
 
 
.set   N_TONY_220, DMEM_220
.set   N_TONY_220, DMEM_220
.set   N_TONY_223, DMEM_223
.set   N_TONY_223, DMEM_223
.set   N_TONY_224, DMEM_224
.set   N_TONY_224, DMEM_224
.set   N_TONY_227, DMEM_227
.set   N_TONY_227, DMEM_227
Line 279... Line 279...
 
 
        mov     #0x1122, &DMEM_218
        mov     #0x1122, &DMEM_218
        mov     #0xeecc, &DMEM_21A
        mov     #0xeecc, &DMEM_21A
        mov     #0x1e2c, &DMEM_21C
        mov     #0x1e2c, &DMEM_21C
        mov     #0xe1c2, &DMEM_21E
        mov     #0xe1c2, &DMEM_21E
        add.b   #0x99aa, N_EDE_218+PMEM_LENGTH  ;# Write 0xaa+0x22=0xcc to memory @0x218
        add.b   #0x99aa, N_EDE_218  ;# Write 0xaa+0x22=0xcc to memory @0x218
        add.b   #0xbbcc, N_EDE_21B+PMEM_LENGTH  ;# Write 0xcc+0xee=0xba to memory @0x21B
        add.b   #0xbbcc, N_EDE_21B  ;# Write 0xcc+0xee=0xba to memory @0x21B
        add.b   #0xddee, N_EDE_21C+PMEM_LENGTH  ;# Write 0xee+0x2c=0x1a to memory @0x21C
        add.b   #0xddee, N_EDE_21C  ;# Write 0xee+0x2c=0x1a to memory @0x21C
        add.b   #0xff11, N_EDE_21F+PMEM_LENGTH  ;# Write 0x11+0xe1=0xf2 to memory @0x21F
        add.b   #0xff11, N_EDE_21F  ;# Write 0x11+0xe1=0xf2 to memory @0x21F
 
 
        mov     #0xaa88, &DMEM_220
        mov     #0xaa88, &DMEM_220
        mov     #0x22ee, &DMEM_222
        mov     #0x22ee, &DMEM_222
        mov     #0xa28e, &DMEM_224
        mov     #0xa28e, &DMEM_224
        mov     #0x2ae8, &DMEM_226
        mov     #0x2ae8, &DMEM_226
Line 298... Line 298...
 
 
        mov     #0x5000, r15
        mov     #0x5000, r15
 
 
 
 
        /* ---------------------- TEST WHEN SOURCE IS x(Rn) ---------------- */
        /* ---------------------- TEST WHEN SOURCE IS x(Rn) ---------------- */
.set   xRn_EDE_218,  DMEM_218
.set   xRn_EDE_218,  DMEM_218+PMEM_EDE_LENGTH
.set   xRn_EDE_21B,  DMEM_21B
.set   xRn_EDE_21B,  DMEM_21B+PMEM_EDE_LENGTH
.set   xRn_EDE_21C,  DMEM_21C
.set   xRn_EDE_21C,  DMEM_21C+PMEM_EDE_LENGTH
.set   xRn_EDE_21F,  DMEM_21F
.set   xRn_EDE_21F,  DMEM_21F+PMEM_EDE_LENGTH
 
 
.set   xRn_TONY_220, DMEM_220
.set   xRn_TONY_220, DMEM_220
.set   xRn_TONY_223, DMEM_223
.set   xRn_TONY_223, DMEM_223
.set   xRn_TONY_224, DMEM_224
.set   xRn_TONY_224, DMEM_224
.set   xRn_TONY_227, DMEM_227
.set   xRn_TONY_227, DMEM_227
Line 343... Line 343...
        mov     #0x77cc, &DMEM_21A
        mov     #0x77cc, &DMEM_21A
        mov     #0x374c, &DMEM_21C
        mov     #0x374c, &DMEM_21C
        mov     #0x73c4, &DMEM_21E
        mov     #0x73c4, &DMEM_21E
 
 
        mov   #DMEM_200, r8
        mov   #DMEM_200, r8
        add.b     2(r8), xRn_EDE_218+PMEM_LENGTH ;# Write 0xaa+0x44=0xee to memory @0x218
        add.b     2(r8), xRn_EDE_218 ;# Write 0xaa+0x44=0xee to memory @0x218
        add.b     4(r8), xRn_EDE_21B+PMEM_LENGTH ;# Write 0xcc+0x77=0x43 to memory @0x21B
        add.b     4(r8), xRn_EDE_21B ;# Write 0xcc+0x77=0x43 to memory @0x21B
        add.b     7(r8), xRn_EDE_21C+PMEM_LENGTH ;# Write 0xdd+0x4c=0x29 to memory @0x21C
        add.b     7(r8), xRn_EDE_21C ;# Write 0xdd+0x4c=0x29 to memory @0x21C
        add.b     9(r8), xRn_EDE_21F+PMEM_LENGTH ;# Write 0xff+0x73=0x72 to memory @0x21F
        add.b     9(r8), xRn_EDE_21F ;# Write 0xff+0x73=0x72 to memory @0x21F
 
 
        mov     #0x2233, &DMEM_202
        mov     #0x2233, &DMEM_202
        mov     #0x4455, &DMEM_204
        mov     #0x4455, &DMEM_204
        mov     #0x6677, &DMEM_206
        mov     #0x6677, &DMEM_206
        mov     #0x8899, &DMEM_208
        mov     #0x8899, &DMEM_208
Line 368... Line 368...
 
 
        mov     #0x6000, r15
        mov     #0x6000, r15
 
 
 
 
        /* ---------------------- TEST WHEN SOURCE IS 'EDE' ---------------- */
        /* ---------------------- TEST WHEN SOURCE IS 'EDE' ---------------- */
.set   EDE_EDE_202,  DMEM_202
.set   EDE_EDE_202,  DMEM_202+PMEM_EDE_LENGTH
.set   EDE_EDE_204,  DMEM_204
.set   EDE_EDE_204,  DMEM_204+PMEM_EDE_LENGTH
.set   EDE_EDE_207,  DMEM_207
.set   EDE_EDE_207,  DMEM_207+PMEM_EDE_LENGTH
.set   EDE_EDE_209,  DMEM_209
.set   EDE_EDE_209,  DMEM_209+PMEM_EDE_LENGTH
.set   EDE_EDE_210,  DMEM_210
.set   EDE_EDE_210,  DMEM_210+PMEM_EDE_LENGTH
.set   EDE_EDE_213,  DMEM_213
.set   EDE_EDE_213,  DMEM_213+PMEM_EDE_LENGTH
.set   EDE_EDE_218,  DMEM_218
.set   EDE_EDE_218,  DMEM_218+PMEM_EDE_LENGTH
.set   EDE_EDE_21B,  DMEM_21B
.set   EDE_EDE_21B,  DMEM_21B+PMEM_EDE_LENGTH
.set   EDE_EDE_21C,  DMEM_21C
.set   EDE_EDE_21C,  DMEM_21C+PMEM_EDE_LENGTH
.set   EDE_EDE_21F,  DMEM_21F
.set   EDE_EDE_21F,  DMEM_21F+PMEM_EDE_LENGTH
 
 
.set   EDE_TONY_220, DMEM_220
.set   EDE_TONY_220, DMEM_220
.set   EDE_TONY_223, DMEM_223
.set   EDE_TONY_223, DMEM_223
.set   EDE_TONY_224, DMEM_224
.set   EDE_TONY_224, DMEM_224
.set   EDE_TONY_227, DMEM_227
.set   EDE_TONY_227, DMEM_227
 
 
 
 
        mov       #0x2233, &DMEM_210
        mov       #0x2233, &DMEM_210
        mov       #0xcb43, r5
        mov       #0xcb43, r5
        add.b EDE_EDE_210+PMEM_LENGTH, r5         ;# Write 0x33+0x43=0x76 to r5
        add.b EDE_EDE_210, r5         ;# Write 0x33+0x43=0x76 to r5
        mov       #0x4455, &DMEM_212
        mov       #0x4455, &DMEM_212
        mov       #0x32a5, r6
        mov       #0x32a5, r6
        add.b EDE_EDE_213+PMEM_LENGTH, r6         ;# Write 0x44+0xa5=0xe9 to r6
        add.b EDE_EDE_213, r6         ;# Write 0x44+0xa5=0xe9 to r6
 
 
        mov       #0x1122, &DMEM_202
        mov       #0x1122, &DMEM_202
        mov       #0x3344, &DMEM_204
        mov       #0x3344, &DMEM_204
        mov       #0x5566, &DMEM_206
        mov       #0x5566, &DMEM_206
        mov       #0x7788, &DMEM_208
        mov       #0x7788, &DMEM_208
Line 402... Line 402...
        mov       #0xaabb, &DMEM_210
        mov       #0xaabb, &DMEM_210
        mov       #0x6655, &DMEM_212
        mov       #0x6655, &DMEM_212
        mov       #0xa6b5, &DMEM_214
        mov       #0xa6b5, &DMEM_214
        mov       #0x6a5b, &DMEM_216
        mov       #0x6a5b, &DMEM_216
 
 
        add.b EDE_EDE_202+PMEM_LENGTH, 16(r7)      ;# Write 0x22+0xbb=0xdd to memory @0x210
        add.b EDE_EDE_202, 16(r7)      ;# Write 0x22+0xbb=0xdd to memory @0x210
        add.b EDE_EDE_204+PMEM_LENGTH, 19(r7)      ;# Write 0x44+0x66=0xaa to memory @0x213
        add.b EDE_EDE_204, 19(r7)      ;# Write 0x44+0x66=0xaa to memory @0x213
        add.b EDE_EDE_207+PMEM_LENGTH, 20(r7)      ;# Write 0x55+0xb5=0x0a to memory @0x214
        add.b EDE_EDE_207, 20(r7)      ;# Write 0x55+0xb5=0x0a to memory @0x214
        add.b EDE_EDE_209+PMEM_LENGTH, 23(r7)      ;# Write 0x77+0x6a=0xe1 to memory @0x217
        add.b EDE_EDE_209, 23(r7)      ;# Write 0x77+0x6a=0xe1 to memory @0x217
 
 
        mov       #0x99aa, &DMEM_202
        mov       #0x99aa, &DMEM_202
        mov       #0xbbcc, &DMEM_204
        mov       #0xbbcc, &DMEM_204
        mov       #0xddee, &DMEM_206
        mov       #0xddee, &DMEM_206
        mov       #0xff11, &DMEM_208
        mov       #0xff11, &DMEM_208
        mov       #0x1122, &DMEM_218
        mov       #0x1122, &DMEM_218
        mov       #0xeeff, &DMEM_21A
        mov       #0xeeff, &DMEM_21A
        mov       #0x1e2f, &DMEM_21C
        mov       #0x1e2f, &DMEM_21C
        mov       #0xe1f2, &DMEM_21E
        mov       #0xe1f2, &DMEM_21E
 
 
        add.b EDE_EDE_202+PMEM_LENGTH, EDE_EDE_218+PMEM_LENGTH ;# Write 0xaa+0x22=0xcc to memory @0x218
        add.b EDE_EDE_202, EDE_EDE_218 ;# Write 0xaa+0x22=0xcc to memory @0x218
        add.b EDE_EDE_204+PMEM_LENGTH, EDE_EDE_21B+PMEM_LENGTH ;# Write 0xcc+0xee=0xba to memory @0x21B
        add.b EDE_EDE_204, EDE_EDE_21B ;# Write 0xcc+0xee=0xba to memory @0x21B
        add.b EDE_EDE_207+PMEM_LENGTH, EDE_EDE_21C+PMEM_LENGTH ;# Write 0xdd+0x2f=0x0c to memory @0x21C
        add.b EDE_EDE_207, EDE_EDE_21C ;# Write 0xdd+0x2f=0x0c to memory @0x21C
        add.b EDE_EDE_209+PMEM_LENGTH, EDE_EDE_21F+PMEM_LENGTH ;# Write 0xff+0xe1=0xe0 to memory @0x21F
        add.b EDE_EDE_209, EDE_EDE_21F ;# Write 0xff+0xe1=0xe0 to memory @0x21F
 
 
        mov       #0x2233, &DMEM_202
        mov       #0x2233, &DMEM_202
        mov       #0x4455, &DMEM_204
        mov       #0x4455, &DMEM_204
        mov       #0x6677, &DMEM_206
        mov       #0x6677, &DMEM_206
        mov       #0x8899, &DMEM_208
        mov       #0x8899, &DMEM_208
Line 431... Line 431...
        mov       #0x1107, &DMEM_220
        mov       #0x1107, &DMEM_220
        mov       #0xccdd, &DMEM_222
        mov       #0xccdd, &DMEM_222
        mov       #0x2c3d, &DMEM_224
        mov       #0x2c3d, &DMEM_224
        mov       #0xc2d3, &DMEM_226
        mov       #0xc2d3, &DMEM_226
 
 
        add.b EDE_EDE_202+PMEM_LENGTH, &EDE_TONY_220 ;# Write 0x33+0x07=0x3a to memory @0x220
        add.b EDE_EDE_202, &EDE_TONY_220 ;# Write 0x33+0x07=0x3a to memory @0x220
        add.b EDE_EDE_204+PMEM_LENGTH, &EDE_TONY_223 ;# Write 0x55+0xcc=0x21 to memory @0x223
        add.b EDE_EDE_204, &EDE_TONY_223 ;# Write 0x55+0xcc=0x21 to memory @0x223
        add.b EDE_EDE_207+PMEM_LENGTH, &EDE_TONY_224 ;# Write 0x66+0x3d=0xa3 to memory @0x224
        add.b EDE_EDE_207, &EDE_TONY_224 ;# Write 0x66+0x3d=0xa3 to memory @0x224
        add.b EDE_EDE_209+PMEM_LENGTH, &EDE_TONY_227 ;# Write 0x88+0xc2=0x4a to memory @0x227
        add.b EDE_EDE_209, &EDE_TONY_227 ;# Write 0x88+0xc2=0x4a to memory @0x227
 
 
        mov       #0x7000, r15
        mov       #0x7000, r15
 
 
 
 
        /* ---------------------- TEST WHEN SOURCE IS '&EDE' --------------- */
        /* ---------------------- TEST WHEN SOURCE IS '&EDE' --------------- */
.set   aEDE_EDE_218,  DMEM_218
.set   aEDE_EDE_218,  DMEM_218+PMEM_EDE_LENGTH
.set   aEDE_EDE_21B,  DMEM_21B
.set   aEDE_EDE_21B,  DMEM_21B+PMEM_EDE_LENGTH
.set   aEDE_EDE_21C,  DMEM_21C
.set   aEDE_EDE_21C,  DMEM_21C+PMEM_EDE_LENGTH
.set   aEDE_EDE_21F,  DMEM_21F
.set   aEDE_EDE_21F,  DMEM_21F+PMEM_EDE_LENGTH
 
 
.set   aEDE_TONY_220, DMEM_220
.set   aEDE_TONY_220, DMEM_220
.set   aEDE_TONY_223, DMEM_223
.set   aEDE_TONY_223, DMEM_223
.set   aEDE_TONY_224, DMEM_224
.set   aEDE_TONY_224, DMEM_224
.set   aEDE_TONY_227, DMEM_227
.set   aEDE_TONY_227, DMEM_227
Line 482... Line 482...
        mov       #0x1122, &DMEM_218
        mov       #0x1122, &DMEM_218
        mov       #0x6677, &DMEM_21A
        mov       #0x6677, &DMEM_21A
        mov       #0x1627, &DMEM_21C
        mov       #0x1627, &DMEM_21C
        mov       #0x6172, &DMEM_21E
        mov       #0x6172, &DMEM_21E
 
 
        add.b   &DMEM_202, aEDE_EDE_218+PMEM_LENGTH ;# Write 0xaa+0x22=0xcc to memory @0x218
        add.b   &DMEM_202, aEDE_EDE_218 ;# Write 0xaa+0x22=0xcc to memory @0x218
        add.b   &DMEM_204, aEDE_EDE_21B+PMEM_LENGTH ;# Write 0xcc+0x66=0x32 to memory @0x21B
        add.b   &DMEM_204, aEDE_EDE_21B ;# Write 0xcc+0x66=0x32 to memory @0x21B
        add.b   &DMEM_207, aEDE_EDE_21C+PMEM_LENGTH ;# Write 0xdd+0x27=0x04 to memory @0x21C
        add.b   &DMEM_207, aEDE_EDE_21C ;# Write 0xdd+0x27=0x04 to memory @0x21C
        add.b   &DMEM_209, aEDE_EDE_21F+PMEM_LENGTH ;# Write 0xff+0x61=0x60 to memory @0x21F
        add.b   &DMEM_209, aEDE_EDE_21F ;# Write 0xff+0x61=0x60 to memory @0x21F
 
 
        mov       #0x2233, &DMEM_202
        mov       #0x2233, &DMEM_202
        mov       #0x4455, &DMEM_204
        mov       #0x4455, &DMEM_204
        mov       #0x6677, &DMEM_206
        mov       #0x6677, &DMEM_206
        mov       #0x8899, &DMEM_208
        mov       #0x8899, &DMEM_208
Line 505... Line 505...
 
 
        mov       #0x8000, r15
        mov       #0x8000, r15
 
 
 
 
        /* ---------------------- TEST WHEN SOURCE IS CONSTANT ------------- */
        /* ---------------------- TEST WHEN SOURCE IS CONSTANT ------------- */
.set   CONSTL_EDE0,   DMEM_230
.set   CONSTL_EDE0,   DMEM_230+PMEM_EDE_LENGTH
.set   CONSTL_EDE1,   DMEM_232
.set   CONSTL_EDE1,   DMEM_232+PMEM_EDE_LENGTH
.set   CONSTL_EDE2,   DMEM_234
.set   CONSTL_EDE2,   DMEM_234+PMEM_EDE_LENGTH
.set   CONSTL_EDE4,   DMEM_236
.set   CONSTL_EDE4,   DMEM_236+PMEM_EDE_LENGTH
.set   CONSTL_EDE8,   DMEM_238
.set   CONSTL_EDE8,   DMEM_238+PMEM_EDE_LENGTH
.set   CONSTL_EDEm1,  DMEM_23A
.set   CONSTL_EDEm1,  DMEM_23A+PMEM_EDE_LENGTH
.set   CONSTH_EDE0,   DMEM_23D
.set   CONSTH_EDE0,   DMEM_23D+PMEM_EDE_LENGTH
.set   CONSTH_EDE1,   DMEM_23F
.set   CONSTH_EDE1,   DMEM_23F+PMEM_EDE_LENGTH
.set   CONSTH_EDE2,   DMEM_241
.set   CONSTH_EDE2,   DMEM_241+PMEM_EDE_LENGTH
.set   CONSTH_EDE4,   DMEM_243
.set   CONSTH_EDE4,   DMEM_243+PMEM_EDE_LENGTH
.set   CONSTH_EDE8,   DMEM_245
.set   CONSTH_EDE8,   DMEM_245+PMEM_EDE_LENGTH
.set   CONSTH_EDEm1,  DMEM_247
.set   CONSTH_EDEm1,  DMEM_247+PMEM_EDE_LENGTH
 
 
.set   CONSTL_TONY0,  DMEM_250
.set   CONSTL_TONY0,  DMEM_250
.set   CONSTL_TONY1,  DMEM_252
.set   CONSTL_TONY1,  DMEM_252
.set   CONSTL_TONY2,  DMEM_254
.set   CONSTL_TONY2,  DMEM_254
.set   CONSTL_TONY4,  DMEM_256
.set   CONSTL_TONY4,  DMEM_256
Line 587... Line 587...
        mov      #0xcc55, &DMEM_240
        mov      #0xcc55, &DMEM_240
        mov      #0xdd55, &DMEM_242
        mov      #0xdd55, &DMEM_242
        mov      #0xee55, &DMEM_244
        mov      #0xee55, &DMEM_244
        mov      #0x3355, &DMEM_246
        mov      #0x3355, &DMEM_246
 
 
        add.b    #0x0000, CONSTL_EDE0+PMEM_LENGTH     ;# Move +0 to memory @0x230
        add.b    #0x0000, CONSTL_EDE0     ;# Move +0 to memory @0x230
        add.b    #0x0001, CONSTL_EDE1+PMEM_LENGTH     ;# Move +1 to memory @0x232
        add.b    #0x0001, CONSTL_EDE1     ;# Move +1 to memory @0x232
        add.b    #0x0002, CONSTL_EDE2+PMEM_LENGTH     ;# Move +2 to memory @0x234
        add.b    #0x0002, CONSTL_EDE2     ;# Move +2 to memory @0x234
        add.b    #0x0004, CONSTL_EDE4+PMEM_LENGTH     ;# Move +4 to memory @0x236
        add.b    #0x0004, CONSTL_EDE4     ;# Move +4 to memory @0x236
        add.b    #0x0008, CONSTL_EDE8+PMEM_LENGTH     ;# Move +8 to memory @0x238
        add.b    #0x0008, CONSTL_EDE8     ;# Move +8 to memory @0x238
        add.b    #0xffff, CONSTL_EDEm1+PMEM_LENGTH    ;# Move -1 to memory @0x23A
        add.b    #0xffff, CONSTL_EDEm1    ;# Move -1 to memory @0x23A
        add.b    #0x0000, CONSTH_EDE0+PMEM_LENGTH     ;# Move +0 to memory @0x23D
        add.b    #0x0000, CONSTH_EDE0     ;# Move +0 to memory @0x23D
        add.b    #0x0001, CONSTH_EDE1+PMEM_LENGTH     ;# Move +1 to memory @0x23F
        add.b    #0x0001, CONSTH_EDE1     ;# Move +1 to memory @0x23F
        add.b    #0x0002, CONSTH_EDE2+PMEM_LENGTH     ;# Move +2 to memory @0x241
        add.b    #0x0002, CONSTH_EDE2     ;# Move +2 to memory @0x241
        add.b    #0x0004, CONSTH_EDE4+PMEM_LENGTH     ;# Move +4 to memory @0x243
        add.b    #0x0004, CONSTH_EDE4     ;# Move +4 to memory @0x243
        add.b    #0x0008, CONSTH_EDE8+PMEM_LENGTH     ;# Move +8 to memory @0x245
        add.b    #0x0008, CONSTH_EDE8     ;# Move +8 to memory @0x245
        add.b    #0xffff, CONSTH_EDEm1+PMEM_LENGTH    ;# Move -1 to memory @0x247
        add.b    #0xffff, CONSTH_EDEm1    ;# Move -1 to memory @0x247
 
 
 
 
        #
        #
        # NOTE: The following section would not fit in the smallest ROM
        # NOTE: The following section would not fit in the smallest ROM
        #       configuration. Therefore, it is executed at the end of
        #       configuration. Therefore, it is executed at the end of

powered by: WebSVN 2.1.0

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