Line 27... |
Line 27... |
/* */
|
/* */
|
/* Author(s): */
|
/* Author(s): */
|
/* - Olivier Girard, olgirard@gmail.com */
|
/* - Olivier Girard, olgirard@gmail.com */
|
/* */
|
/* */
|
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
/* $Rev: 19 $ */
|
/* $Rev: 111 $ */
|
/* $LastChangedBy: olivier.girard $ */
|
/* $LastChangedBy: olivier.girard $ */
|
/* $LastChangedDate: 2009-08-04 23:47:15 +0200 (Tue, 04 Aug 2009) $ */
|
/* $LastChangedDate: 2011-05-20 22:39:02 +0200 (Fri, 20 May 2011) $ */
|
/*===========================================================================*/
|
/*===========================================================================*/
|
|
|
|
.set DMEM_BASE, (__data_start )
|
|
.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)
|
|
.set DMEM_222, (__data_start+0x22)
|
|
.set DMEM_224, (__data_start+0x24)
|
|
.set DMEM_226, (__data_start+0x26)
|
|
.set DMEM_228, (__data_start+0x28)
|
|
.set DMEM_22A, (__data_start+0x2A)
|
|
.set DMEM_22C, (__data_start+0x2C)
|
|
.set DMEM_22E, (__data_start+0x2E)
|
|
.set DMEM_230, (__data_start+0x30)
|
|
.set DMEM_232, (__data_start+0x32)
|
|
.set DMEM_234, (__data_start+0x34)
|
|
.set DMEM_236, (__data_start+0x36)
|
|
.set DMEM_238, (__data_start+0x38)
|
|
.set DMEM_23A, (__data_start+0x3A)
|
|
.set DMEM_23C, (__data_start+0x3C)
|
|
.set DMEM_23E, (__data_start+0x3E)
|
|
.set DMEM_240, (__data_start+0x40)
|
|
.set DMEM_250, (__data_start+0x50)
|
|
.set DMEM_252, (__data_start+0x52)
|
|
.set DMEM_254, (__data_start+0x54)
|
|
.set DMEM_256, (__data_start+0x56)
|
|
.set DMEM_258, (__data_start+0x58)
|
|
.set DMEM_25A, (__data_start+0x5A)
|
|
.set DMEM_25C, (__data_start+0x5C)
|
|
.set DMEM_25D, (__data_start+0x5D)
|
|
.set DMEM_25E, (__data_start+0x5E)
|
|
.set DMEM_25F, (__data_start+0x5F)
|
|
.set DMEM_260, (__data_start+0x60)
|
|
.set DMEM_261, (__data_start+0x61)
|
|
.set DMEM_262, (__data_start+0x62)
|
|
.set DMEM_263, (__data_start+0x63)
|
|
.set DMEM_264, (__data_start+0x64)
|
|
.set DMEM_265, (__data_start+0x65)
|
|
.set DMEM_266, (__data_start+0x66)
|
|
.set DMEM_267, (__data_start+0x67)
|
|
|
.global main
|
.global main
|
|
|
main:
|
main:
|
/* ---------------------- INITIALIZE REGISTERS --------------------- */
|
/* ---------------------- INITIALIZE REGISTERS --------------------- */
|
Line 55... |
Line 107... |
|
|
mov #0x1000, r15
|
mov #0x1000, r15
|
|
|
|
|
/* ---------------------- TEST WHEN SOURCE IS Rn ------------------- */
|
/* ---------------------- TEST WHEN SOURCE IS Rn ------------------- */
|
.set Rn_EDE, (__data_start+0x0012)
|
.set Rn_EDE, DMEM_212
|
.set Rn_TONY, 0x0214
|
.set Rn_TONY, DMEM_214
|
|
|
mov #0x4444, r4
|
mov #0x4444, r4
|
mov #0x5555, r5
|
mov #0x5555, r5
|
add r4, r5 ;# Add r4+r5 (0x4444+0x5555=0x9999)
|
add r4, r5 ;# Add r4+r5 (0x4444+0x5555=0x9999)
|
|
|
Line 70... |
Line 122... |
nop
|
nop
|
nop
|
nop
|
mov #0x1234, r4 ;# Make sure the jump is taken
|
mov #0x1234, r4 ;# Make sure the jump is taken
|
test_Rn_PC:
|
test_Rn_PC:
|
|
|
mov #0x2222, &0x0210
|
mov #0x2222, &DMEM_210
|
mov #0x0200, r6
|
mov #DMEM_200, r6
|
mov #0x3333, r7
|
mov #0x3333, r7
|
add r7, 16(r6) ;# Write 0x2222+0x3333=0x5555 to memory @0x0210
|
add r7, 16(r6) ;# Write 0x2222+0x3333=0x5555 to memory @0x0210
|
|
|
mov #0x4444, &0x0212
|
mov #0x4444, &DMEM_212
|
mov #0x5678, r7
|
mov #0x5678, r7
|
add r7, Rn_EDE ;# Write 0x4444+0x5678=0x9abc to memory @0x0212
|
add r7, Rn_EDE ;# Write 0x4444+0x5678=0x9abc to memory @0x0212
|
|
|
mov #0x5555, &0x0214
|
mov #0x5555, &DMEM_214
|
mov #0x1234, r8
|
mov #0x1234, r8
|
add r8, &Rn_TONY ;# Write 0x5555+0x1234=0x6789 to memory @0x0214
|
add r8, &Rn_TONY ;# Write 0x5555+0x1234=0x6789 to memory @0x0214
|
|
|
mov #0x2000, r15
|
mov #0x2000, r15
|
|
|
|
|
/* ---------------------- TEST WHEN SOURCE IS @Rn ------------------ */
|
/* ---------------------- TEST WHEN SOURCE IS @Rn ------------------ */
|
.set aRn_EDE, (__data_start+0x0012)
|
.set aRn_EDE, DMEM_212
|
.set aRn_TONY, 0x0214
|
.set aRn_TONY, DMEM_214
|
|
|
mov #0x0200, r4
|
mov #DMEM_200, r4
|
mov #0x1111, &0x0200
|
mov #0x1111, &DMEM_200
|
mov #0x6666, r5
|
mov #0x6666, r5
|
add @r4, r5 ;# Add @r4+r5 (0x1111+0x6666=0x7777)
|
add @r4, r5 ;# Add @r4+r5 (0x1111+0x6666=0x7777)
|
|
|
mov #0x0200, r4
|
mov #DMEM_200, r4
|
mov #0x000a, &0x0200
|
mov #0x000a, &DMEM_200
|
add @r4, r0
|
add @r4, r0
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
mov #0x1234, r4 ;# Make sure the jump is taken
|
mov #0x1234, r4 ;# Make sure the jump is taken
|
test_aRn_PC:
|
test_aRn_PC:
|
|
|
mov #0x1234, &0x020e
|
mov #0x1234, &DMEM_20E
|
mov #0x5432, &0x0210
|
mov #0x5432, &DMEM_210
|
mov #0x0200, r6
|
mov #DMEM_200, r6
|
mov #0x020e, r7
|
mov #DMEM_20E, r7
|
add @r7, 16(r6) ;# Write 0x1234+0x5432=0x6666 to memory @0x0210
|
add @r7, 16(r6) ;# Write 0x1234+0x5432=0x6666 to memory @0x0210
|
|
|
mov #0x5f12, &0x0200
|
mov #0x5f12, &DMEM_200
|
mov #0x8e1c, &0x0212
|
mov #0x8e1c, &DMEM_212
|
mov #0x0200, r7
|
mov #DMEM_200, r7
|
add @r7, aRn_EDE ;# Write 0x5f12+0x8e1c=0xed2e to memory @0x0212
|
add @r7, aRn_EDE ;# Write 0x5f12+0x8e1c=0xed2e to memory @0x0212
|
|
|
mov #0x3112, &0x0202
|
mov #0x3112, &DMEM_202
|
mov #0x1541, &0x0214
|
mov #0x1541, &DMEM_214
|
mov #0x0202, r8
|
mov #DMEM_202, r8
|
add @r8, &aRn_TONY ;# Write 0x3112+0x1541=0x4653 to memory @0x0214
|
add @r8, &aRn_TONY ;# Write 0x3112+0x1541=0x4653 to memory @0x0214
|
|
|
mov #0x3000, r15
|
mov #0x3000, r15
|
|
|
|
|
|
|
/* ---------------------- TEST WHEN SOURCE IS @Rn+ ----------------- */
|
/* ---------------------- TEST WHEN SOURCE IS @Rn+ ----------------- */
|
.set aRni_EDE, (__data_start+0x0012)
|
.set aRni_EDE, DMEM_212
|
.set aRni_TONY, 0x0214
|
.set aRni_TONY, DMEM_214
|
|
|
mov #0x0200, r4
|
mov #DMEM_200, r4
|
mov #0x2222, &0x0200
|
mov #0x2222, &DMEM_200
|
mov #0x8888, r5
|
mov #0x8888, r5
|
add @r4+, r5 ;# Add @r4+r5 (0x2222+0x8888=0xaaaa)
|
add @r4+, r5 ;# Add @r4+r5 (0x2222+0x8888=0xaaaa)
|
|
|
mov #0x0204, r6
|
mov #DMEM_204, r6
|
mov #0x000a, &0x0204
|
mov #0x000a, &DMEM_204
|
add @r6+, r0
|
add @r6+, r0
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
mov #0x1234, r6 ;# Make sure the jump is taken
|
mov #0x1234, r6 ;# Make sure the jump is taken
|
test_aRni_PC:
|
test_aRni_PC:
|
|
|
mov #0x1234, &0x020e
|
mov #0x1234, &DMEM_20E
|
mov #0x5432, &0x0210
|
mov #0x5432, &DMEM_210
|
mov #0x0200, r8
|
mov #DMEM_200, r8
|
mov #0x020e, r7
|
mov #DMEM_20E, r7
|
add @r7+, 16(r8) ;# Write 0x1234+0x5432=0x6666 to memory @0x0210
|
add @r7+, 16(r8) ;# Write 0x1234+0x5432=0x6666 to memory @0x0210
|
|
|
mov #0x5f12, &0x0206
|
mov #0x5f12, &DMEM_206
|
mov #0x8e1c, &0x0212
|
mov #0x8e1c, &DMEM_212
|
mov #0x0206, r8
|
mov #DMEM_206, r8
|
add @r8+, aRni_EDE ;# Write 0x5f12+0x8e1c=0xed2e to memory @0x0212
|
add @r8+, aRni_EDE ;# Write 0x5f12+0x8e1c=0xed2e to memory @0x0212
|
|
|
mov #0x3112, &0x0202
|
mov #0x3112, &DMEM_202
|
mov #0x1541, &0x0214
|
mov #0x1541, &DMEM_214
|
mov #0x0202, r9
|
mov #DMEM_202, r9
|
add @r9+, &aRni_TONY ;# Write 0x3112+0x1541=0x4653 to memory @0x0214
|
add @r9+, &aRni_TONY ;# Write 0x3112+0x1541=0x4653 to memory @0x0214
|
|
|
mov #0x4000, r15
|
mov #0x4000, r15
|
|
|
|
|
|
|
/* ---------------------- TEST WHEN SOURCE IS #N ------------------- */
|
/* ---------------------- TEST WHEN SOURCE IS #N ------------------- */
|
.set N_EDE, (__data_start+0x0010)
|
.set N_EDE, DMEM_210
|
.set N_TONY, 0x0206
|
.set N_TONY, DMEM_206
|
|
|
mov #0x3210, r4
|
mov #0x3210, r4
|
add #0x1234, r4 ;# Write 0x3210+0x1234=0x4444 to R4
|
add #0x1234, r4 ;# Write 0x3210+0x1234=0x4444 to R4
|
|
|
mov #0x0000, r5
|
mov #0x0000, r5
|
Line 177... |
Line 229... |
nop
|
nop
|
nop
|
nop
|
mov #0x1234, r5 ;# Make sure the jump is taken
|
mov #0x1234, r5 ;# Make sure the jump is taken
|
test_N_PC:
|
test_N_PC:
|
|
|
mov #0x5432, &0x0230
|
mov #0x5432, &DMEM_230
|
mov #0x0200, r6
|
mov #DMEM_200, r6
|
add #0x5a5a, 48(r6) ;# Write 0x5432+0x5a5a=0xae8c to memory @0x0230
|
add #0x5a5a, 48(r6) ;# Write 0x5432+0x5a5a=0xae8c to memory @0x0230
|
|
|
mov #0x4325, &0x0210
|
mov #0x4325, &DMEM_210
|
add #0x1a2b, N_EDE ;# Write 0x4325+0x1a2b=0x5d50 to memory @0x0210
|
add #0x1a2b, N_EDE ;# Write 0x4325+0x1a2b=0x5d50 to memory @0x0210
|
|
|
mov #0x3254, &0x0206
|
mov #0x3254, &DMEM_206
|
add #0x3c4d, &N_TONY ;# Write 0x3254+0x3c4d=0x6ea1 to memory @0x0206
|
add #0x3c4d, &N_TONY ;# Write 0x3254+0x3c4d=0x6ea1 to memory @0x0206
|
|
|
mov #0x5000, r15
|
mov #0x5000, r15
|
|
|
|
|
/* ---------------------- TEST WHEN SOURCE IS x(Rn) ---------------- */
|
/* ---------------------- TEST WHEN SOURCE IS x(Rn) ---------------- */
|
.set xRn_EDE, (__data_start+0x0020)
|
.set xRn_EDE, DMEM_220
|
.set xRn_TONY, 0x0208
|
.set xRn_TONY, DMEM_208
|
|
|
mov #0x8347, &0x0210
|
mov #0x8347, &DMEM_210
|
mov #0x1234, r5
|
mov #0x1234, r5
|
mov #0x0200, r4
|
mov #DMEM_200, r4
|
add 16(r4), r5 ;# Write 0x8347+0x1234=0x957b to R5
|
add 16(r4), r5 ;# Write 0x8347+0x1234=0x957b to R5
|
|
|
mov #0x000a, &0x0208
|
mov #0x000a, &DMEM_208
|
mov #0x0200, r4
|
mov #DMEM_200, r4
|
mov #0x1234, r6
|
mov #0x1234, r6
|
add 8(r4), r0
|
add 8(r4), r0
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
mov #0x0000, r6 ;# Make sure the jump is taken
|
mov #0x0000, r6 ;# Make sure the jump is taken
|
test_xRn_PC:
|
test_xRn_PC:
|
|
|
mov #0x4241, &0x0210
|
mov #0x4241, &DMEM_210
|
mov #0x1535, &0x0214
|
mov #0x1535, &DMEM_214
|
mov #0x0200, r7
|
mov #DMEM_200, r7
|
mov #0x0202, 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 #0x7238, &0x0204
|
mov #0x7238, &DMEM_204
|
mov #0x2143, &0x0220
|
mov #0x2143, &DMEM_220
|
mov #0x0200, r7
|
mov #DMEM_200, r7
|
add 4(r7), xRn_EDE ;# Write 0x7238+0x2143=0x937b to memory @0x220
|
add 4(r7), xRn_EDE ;# Write 0x7238+0x2143=0x937b to memory @0x220
|
|
|
mov #0x98b2, &0x0216
|
mov #0x98b2, &DMEM_216
|
mov #0x1432, &0x0208
|
mov #0x1432, &DMEM_208
|
mov #0x0200, r7
|
mov #DMEM_200, r7
|
add 22(r4), &xRn_TONY ;# Write 0x0x98b2+0x1432=0xace4 to memory @0x208
|
add 22(r4), &xRn_TONY ;# Write 0x0x98b2+0x1432=0xace4 to memory @0x208
|
|
|
mov #0x6000, r15
|
mov #0x6000, r15
|
|
|
|
|
/* ---------------------- TEST WHEN SOURCE IS 'EDE' ---------------- */
|
/* ---------------------- TEST WHEN SOURCE IS 'EDE' ---------------- */
|
.set EDE_EDE, (__data_start+0x0016)
|
.set EDE_EDE, DMEM_216
|
.set EDE_TONY, 0x0212
|
.set EDE_TONY, DMEM_212
|
|
|
.set EDE_200, (__data_start+0x0000)
|
.set EDE_200, DMEM_200
|
.set EDE_202, (__data_start+0x0002)
|
.set EDE_202, DMEM_202
|
.set EDE_204, (__data_start+0x0004)
|
.set EDE_204, DMEM_204
|
.set EDE_206, (__data_start+0x0006)
|
.set EDE_206, DMEM_206
|
.set EDE_208, (__data_start+0x0008)
|
.set EDE_208, DMEM_208
|
|
|
mov #0xc3d6, &0x0200
|
mov #0xc3d6, &DMEM_200
|
mov #0x1234, &0x0204
|
mov #0x1234, &DMEM_204
|
mov #0x4321, r4
|
mov #0x4321, r4
|
add EDE_200, r4 ;# Write 0xc3d6+0x4321=0x06f7 to R4
|
add EDE_200, r4 ;# Write 0xc3d6+0x4321=0x06f7 to R4
|
|
|
mov #0x000a, &0x0202
|
mov #0x000a, &DMEM_202
|
mov #0x1234, &0x0204
|
mov #0x1234, &DMEM_204
|
mov #0x3456, r6
|
mov #0x3456, r6
|
add EDE_202, r0
|
add EDE_202, r0
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
mov #0x0000, r6 ;# Make sure the jump is taken
|
mov #0x0000, r6 ;# Make sure the jump is taken
|
test_EDE_PC:
|
test_EDE_PC:
|
|
|
mov #0x0202, r8
|
mov #DMEM_202, r8
|
mov #0xf712, &0x0204
|
mov #0xf712, &DMEM_204
|
mov #0x1234, &0x0214
|
mov #0x1234, &DMEM_214
|
mov #0x0000, &0x0208
|
mov #0x0000, &DMEM_208
|
add EDE_204, 18(r8) ;# Write 0xf712+0x1234=0x0946 to memory @0x214
|
add EDE_204, 18(r8) ;# Write 0xf712+0x1234=0x0946 to memory @0x214
|
|
|
mov #0xb3a9, &0x0206
|
mov #0xb3a9, &DMEM_206
|
mov #0x058a, &0x0216
|
mov #0x058a, &DMEM_216
|
mov #0x1234, &0x0208
|
mov #0x1234, &DMEM_208
|
add EDE_206, EDE_EDE ;# Write 0xb3a9+0x058a=0xb933 to memory @0x216
|
add EDE_206, EDE_EDE ;# Write 0xb3a9+0x058a=0xb933 to memory @0x216
|
|
|
mov #0x837A, &0x0208
|
mov #0x837A, &DMEM_208
|
mov #0xA738, &0x0212
|
mov #0xA738, &DMEM_212
|
mov #0x1234, &0x020A
|
mov #0x1234, &DMEM_20A
|
add EDE_208, &EDE_TONY ;# Write 0x837A+0xA738=0x2ab2 to memory @0x212
|
add EDE_208, &EDE_TONY ;# Write 0x837A+0xA738=0x2ab2 to memory @0x212
|
|
|
mov #0x7000, r15
|
mov #0x7000, r15
|
|
|
|
|
|
|
/* ---------------------- TEST WHEN SOURCE IS '&EDE' --------------- */
|
/* ---------------------- TEST WHEN SOURCE IS '&EDE' --------------- */
|
.set aEDE_EDE, (__data_start+0x0018)
|
.set aEDE_EDE, DMEM_218
|
.set aEDE_TONY, 0x0202
|
.set aEDE_TONY, DMEM_202
|
|
|
mov #0x23d4, &0x0200
|
mov #0x23d4, &DMEM_200
|
mov #0x1234, &0x0202
|
mov #0x1234, &DMEM_202
|
mov #0x4321, r4
|
mov #0x4321, r4
|
add &0x0200, r4 ;# Write 0x23d4+0x4321=0x66f5 to R4
|
add &DMEM_200, r4 ;# Write 0x23d4+0x4321=0x66f5 to R4
|
|
|
mov #0x000a, &0x0202
|
mov #0x000a, &DMEM_202
|
mov #0x1234, &0x0204
|
mov #0x1234, &DMEM_204
|
mov #0x3456, r6
|
mov #0x3456, r6
|
add &0x0202, r0
|
add &DMEM_202, r0
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
mov #0x0000, r6 ;# Make sure the jump is taken
|
mov #0x0000, r6 ;# Make sure the jump is taken
|
test_aEDE_PC:
|
test_aEDE_PC:
|
|
|
mov #0x0202, r7
|
mov #DMEM_202, r7
|
mov #0x481c, &0x0204
|
mov #0x481c, &DMEM_204
|
mov #0x3ab5, &0x0214
|
mov #0x3ab5, &DMEM_214
|
mov #0x1234, &0x0206
|
mov #0x1234, &DMEM_206
|
add &0x0204, 18(r7) ;# Write 0x481c+0x3ab5=0x82d1 to memory @0x214
|
add &DMEM_204, 18(r7) ;# Write 0x481c+0x3ab5=0x82d1 to memory @0x214
|
|
|
mov #0x5c1f, &0x0206
|
mov #0x5c1f, &DMEM_206
|
mov #0x6e2f, &0x0218
|
mov #0x6e2f, &DMEM_218
|
mov #0x1234, &0x0208
|
mov #0x1234, &DMEM_208
|
add &0x0206, aEDE_EDE ;# Write 0x5c1f+0x6e2f=0xca4e to memory @0x218
|
add &DMEM_206, aEDE_EDE ;# Write 0x5c1f+0x6e2f=0xca4e to memory @0x218
|
|
|
mov #0xc16e, &0x0208
|
mov #0xc16e, &DMEM_208
|
mov #0x51ca, &0x0202
|
mov #0x51ca, &DMEM_202
|
mov #0x1234, &0x020A
|
mov #0x1234, &DMEM_20A
|
add &0x0208, &aEDE_TONY ;# Write 0xc16e+0x51ca=0x1338 to memory @0x202
|
add &DMEM_208, &aEDE_TONY ;# Write 0xc16e+0x51ca=0x1338 to memory @0x202
|
|
|
mov #0x8000, r15
|
mov #0x8000, r15
|
|
|
|
|
/* ---------------------- TEST WHEN SOURCE IS CONSTANT ------------- */
|
/* ---------------------- TEST WHEN SOURCE IS CONSTANT ------------- */
|
.set CONST_EDE0, (__data_start+0x0020)
|
.set CONST_EDE0, DMEM_220
|
.set CONST_EDE1, (__data_start+0x0022)
|
.set CONST_EDE1, DMEM_222
|
.set CONST_EDE2, (__data_start+0x0024)
|
.set CONST_EDE2, DMEM_224
|
.set CONST_EDE4, (__data_start+0x0026)
|
.set CONST_EDE4, DMEM_226
|
.set CONST_EDE8, (__data_start+0x0028)
|
.set CONST_EDE8, DMEM_228
|
.set CONST_EDEm1, (__data_start+0x002A)
|
.set CONST_EDEm1, DMEM_22A
|
|
|
.set CONST_TONY0, 0x0230
|
.set CONST_TONY0, DMEM_230
|
.set CONST_TONY1, 0x0232
|
.set CONST_TONY1, DMEM_232
|
.set CONST_TONY2, 0x0234
|
.set CONST_TONY2, DMEM_234
|
.set CONST_TONY4, 0x0236
|
.set CONST_TONY4, DMEM_236
|
.set CONST_TONY8, 0x0238
|
.set CONST_TONY8, DMEM_238
|
.set CONST_TONYm1, 0x023A
|
.set CONST_TONYm1, DMEM_23A
|
|
|
|
|
mov #0x4444, r4 ;# Initialize registers
|
mov #0x4444, r4 ;# Initialize registers
|
mov #0x5555, r5
|
mov #0x5555, r5
|
mov #0x6666, r6
|
mov #0x6666, r6
|
Line 352... |
Line 404... |
jmp end_const_r0
|
jmp end_const_r0
|
clr r11
|
clr r11
|
clr r11
|
clr r11
|
end_const_r0:
|
end_const_r0:
|
|
|
mov #0x0202, r10
|
mov #DMEM_202, r10
|
mov #0x4444, &0x0210 ;# Initialize Memory
|
mov #0x4444, &DMEM_210 ;# Initialize Memory
|
mov #0x5555, &0x0212
|
mov #0x5555, &DMEM_212
|
mov #0x6666, &0x0214
|
mov #0x6666, &DMEM_214
|
mov #0x7777, &0x0216
|
mov #0x7777, &DMEM_216
|
mov #0x8888, &0x0218
|
mov #0x8888, &DMEM_218
|
mov #0x9999, &0x021A
|
mov #0x9999, &DMEM_21A
|
add #0x0000, 14(r10) ;# Move 0x4444+0 to memory @0x210
|
add #0x0000, 14(r10) ;# Move 0x4444+0 to memory @0x210
|
add #0x0001, 16(r10) ;# Move 0x5555+1 to memory @0x212
|
add #0x0001, 16(r10) ;# Move 0x5555+1 to memory @0x212
|
add #0x0002, 18(r10) ;# Move 0x6666+2 to memory @0x214
|
add #0x0002, 18(r10) ;# Move 0x6666+2 to memory @0x214
|
add #0x0004, 20(r10) ;# Move 0x7777+4 to memory @0x216
|
add #0x0004, 20(r10) ;# Move 0x7777+4 to memory @0x216
|
add #0x0008, 22(r10) ;# Move 0x8888+8 to memory @0x218
|
add #0x0008, 22(r10) ;# Move 0x8888+8 to memory @0x218
|
add #0xffff, 24(r10) ;# Move 0x9999-1 to memory @0x21A
|
add #0xffff, 24(r10) ;# Move 0x9999-1 to memory @0x21A
|
|
|
|
|
mov #0x4444, &0x0220 ;# Initialize Memory
|
mov #0x4444, &DMEM_220 ;# Initialize Memory
|
mov #0x5555, &0x0222
|
mov #0x5555, &DMEM_222
|
mov #0x6666, &0x0224
|
mov #0x6666, &DMEM_224
|
mov #0x7777, &0x0226
|
mov #0x7777, &DMEM_226
|
mov #0x8888, &0x0228
|
mov #0x8888, &DMEM_228
|
mov #0x9999, &0x022A
|
mov #0x9999, &DMEM_22A
|
add #0x0000, CONST_EDE0 ;# Move 0x4444+0 to memory @0x220
|
add #0x0000, CONST_EDE0 ;# Move 0x4444+0 to memory @0x220
|
add #0x0001, CONST_EDE1 ;# Move 0x5555+1 to memory @0x222
|
add #0x0001, CONST_EDE1 ;# Move 0x5555+1 to memory @0x222
|
add #0x0002, CONST_EDE2 ;# Move 0x6666+2 to memory @0x224
|
add #0x0002, CONST_EDE2 ;# Move 0x6666+2 to memory @0x224
|
add #0x0004, CONST_EDE4 ;# Move 0x7777+4 to memory @0x226
|
add #0x0004, CONST_EDE4 ;# Move 0x7777+4 to memory @0x226
|
add #0x0008, CONST_EDE8 ;# Move 0x8888+8 to memory @0x228
|
add #0x0008, CONST_EDE8 ;# Move 0x8888+8 to memory @0x228
|
add #0xffff, CONST_EDEm1 ;# Move 0x9999-1 to memory @0x22A
|
add #0xffff, CONST_EDEm1 ;# Move 0x9999-1 to memory @0x22A
|
|
|
mov #0x4444, &0x0230 ;# Initialize Memory
|
mov #0x4444, &DMEM_230 ;# Initialize Memory
|
mov #0x5555, &0x0232
|
mov #0x5555, &DMEM_232
|
mov #0x6666, &0x0234
|
mov #0x6666, &DMEM_234
|
mov #0x7777, &0x0236
|
mov #0x7777, &DMEM_236
|
mov #0x8888, &0x0238
|
mov #0x8888, &DMEM_238
|
mov #0x9999, &0x023A
|
mov #0x9999, &DMEM_23A
|
add #0x0000, &CONST_TONY0 ;# Move 0x4444+0 to memory @0x230
|
add #0x0000, &CONST_TONY0 ;# Move 0x4444+0 to memory @0x230
|
add #0x0001, &CONST_TONY1 ;# Move 0x5555+1 to memory @0x232
|
add #0x0001, &CONST_TONY1 ;# Move 0x5555+1 to memory @0x232
|
add #0x0002, &CONST_TONY2 ;# Move 0x6666+2 to memory @0x234
|
add #0x0002, &CONST_TONY2 ;# Move 0x6666+2 to memory @0x234
|
add #0x0004, &CONST_TONY4 ;# Move 0x7777+4 to memory @0x236
|
add #0x0004, &CONST_TONY4 ;# Move 0x7777+4 to memory @0x236
|
add #0x0008, &CONST_TONY8 ;# Move 0x8888+8 to memory @0x238
|
add #0x0008, &CONST_TONY8 ;# Move 0x8888+8 to memory @0x238
|
Line 440... |
Line 492... |
#
|
#
|
# NOTE: The following section would not fit in the smallest ROM
|
# NOTE: The following section would not fit in the smallest ROM
|
# configuration for the "two-op_add-b.s43" pattern.
|
# configuration for the "two-op_add-b.s43" pattern.
|
# It is therefore executed here.
|
# It is therefore executed here.
|
#
|
#
|
.set CONSTL_TONY0, 0x0250
|
.set CONSTL_TONY0, DMEM_250
|
.set CONSTL_TONY1, 0x0252
|
.set CONSTL_TONY1, DMEM_252
|
.set CONSTL_TONY2, 0x0254
|
.set CONSTL_TONY2, DMEM_254
|
.set CONSTL_TONY4, 0x0256
|
.set CONSTL_TONY4, DMEM_256
|
.set CONSTL_TONY8, 0x0258
|
.set CONSTL_TONY8, DMEM_258
|
.set CONSTL_TONYm1, 0x025A
|
.set CONSTL_TONYm1, DMEM_25A
|
.set CONSTH_TONY0, 0x025D
|
.set CONSTH_TONY0, DMEM_25D
|
.set CONSTH_TONY1, 0x025F
|
.set CONSTH_TONY1, DMEM_25F
|
.set CONSTH_TONY2, 0x0261
|
.set CONSTH_TONY2, DMEM_261
|
.set CONSTH_TONY4, 0x0263
|
.set CONSTH_TONY4, DMEM_263
|
.set CONSTH_TONY8, 0x0265
|
.set CONSTH_TONY8, DMEM_265
|
.set CONSTH_TONYm1, 0x0267
|
.set CONSTH_TONYm1, DMEM_267
|
|
|
mov #0xaa44, &0x0250 ;# Initialize Memory
|
mov #0xaa44, &DMEM_250 ;# Initialize Memory
|
mov #0xaa55, &0x0252
|
mov #0xaa55, &DMEM_252
|
mov #0xaa66, &0x0254
|
mov #0xaa66, &DMEM_254
|
mov #0xaa77, &0x0256
|
mov #0xaa77, &DMEM_256
|
mov #0xaa35, &0x0258
|
mov #0xaa35, &DMEM_258
|
mov #0xaa99, &0x025A
|
mov #0xaa99, &DMEM_25A
|
mov #0xaa55, &0x025C
|
mov #0xaa55, &DMEM_25C
|
mov #0xbb55, &0x025E
|
mov #0xbb55, &DMEM_25E
|
mov #0xcc55, &0x0260
|
mov #0xcc55, &DMEM_260
|
mov #0xdd55, &0x0262
|
mov #0xdd55, &DMEM_262
|
mov #0xee55, &0x0264
|
mov #0xee55, &DMEM_264
|
mov #0x3355, &0x0266
|
mov #0x3355, &DMEM_266
|
|
|
add.b #0x0000, &CONSTL_TONY0 ;# Move +0 to memory @0x250
|
add.b #0x0000, &CONSTL_TONY0 ;# Move +0 to memory @0x250
|
add.b #0x0001, &CONSTL_TONY1 ;# Move +1 to memory @0x252
|
add.b #0x0001, &CONSTL_TONY1 ;# Move +1 to memory @0x252
|
add.b #0x0002, &CONSTL_TONY2 ;# Move +2 to memory @0x254
|
add.b #0x0002, &CONSTL_TONY2 ;# Move +2 to memory @0x254
|
add.b #0x0004, &CONSTL_TONY4 ;# Move +4 to memory @0x256
|
add.b #0x0004, &CONSTL_TONY4 ;# Move +4 to memory @0x256
|