;misc test
incdir  "tests"
include "dsp_base.inc"

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0x317c
cw 0x5
call send_back  ; 1 (0x0001)

lri $AR1,    #0xcf08
lri $IX1,    #0x95c2
lri $WR1,    #0x7ad8
cw 0x5
call send_back  ; 2 (0x0002)

lri $AR1,    #0x59ac
lri $IX1,    #0xe55c
lri $WR1,    #0xd2a4
cw 0x5
call send_back  ; 3 (0x0003)

lri $AR1,    #0xbf20
lri $IX1,    #0x2c92
lri $WR1,    #0xdbe2
cw 0x5
call send_back  ; 4 (0x0004)

lri $AR1,    #0xb5e2
lri $IX1,    #0x8376
lri $WR1,    #0x4dd2
cw 0x5
call send_back  ; 5 (0x0005)

lri $AR1,    #0x03d6
lri $IX1,    #0x1766
lri $WR1,    #0x5d4c
cw 0x5
call send_back  ; 6 (0x0006)

lri $AR1,    #0x25b6
lri $IX1,    #0x2a78
lri $WR1,    #0xfd0e
cw 0x5
call send_back  ; 7 (0x0007)

lri $AR1,    #0x7218
lri $IX1,    #0x1e7c
lri $WR1,    #0x0132
cw 0x5
call send_back  ; 8 (0x0008)

lri $AR1,    #0x0248
lri $IX1,    #0x60bc
lri $WR1,    #0x881a
cw 0x5
call send_back  ; 9 (0x0009)

lri $AR1,    #0x9238
lri $IX1,    #0x9a0c
lri $WR1,    #0x9b6e
cw 0x5
call send_back  ; 10 (0x000a)

lri $AR1,    #0x2a8e
lri $IX1,    #0xa9bc
lri $WR1,    #0x7366
cw 0x5
call send_back  ; 11 (0x000b)

lri $AR1,    #0x5a24
lri $IX1,    #0x0e9a
lri $WR1,    #0x9b90
cw 0x5
call send_back  ; 12 (0x000c)

lri $AR1,    #0xc886
lri $IX1,    #0xcd76
lri $WR1,    #0x8516
cw 0x5
call send_back  ; 13 (0x000d)

lri $AR1,    #0x4d4c
lri $IX1,    #0xe03e
lri $WR1,    #0xba06
cw 0x5
call send_back  ; 14 (0x000e)

lri $AR1,    #0xf4b4
lri $IX1,    #0xecfa
lri $WR1,    #0x8a12
cw 0x5
call send_back  ; 15 (0x000f)

lri $AR1,    #0x2470
lri $IX1,    #0x764a
lri $WR1,    #0x3c3e
cw 0x5
call send_back  ; 16 (0x0010)

lri $AR1,    #0xdcba
lri $IX1,    #0x35a8
lri $WR1,    #0xc796
cw 0x5
call send_back  ; 17 (0x0011)

lri $AR1,    #0xd7f8
lri $IX1,    #0xff2c
lri $WR1,    #0xffea
cw 0x5
call send_back  ; 18 (0x0012)

lri $AR1,    #0x9c8a
lri $IX1,    #0x6476
lri $WR1,    #0x4426
cw 0x5
call send_back  ; 19 (0x0013)

lri $AR1,    #0x4c1a
lri $IX1,    #0xd712
lri $WR1,    #0x0614
cw 0x5
call send_back  ; 20 (0x0014)

lri $AR1,    #0x6038
lri $IX1,    #0x17b6
lri $WR1,    #0xad5c
cw 0x5
call send_back  ; 21 (0x0015)

lri $AR1,    #0x0e64
lri $IX1,    #0x0240
lri $WR1,    #0xeb34
cw 0x5
call send_back  ; 22 (0x0016)

lri $AR1,    #0x46a0
lri $IX1,    #0x45dc
lri $WR1,    #0x9680
cw 0x5
call send_back  ; 23 (0x0017)

lri $AR1,    #0xb0f0
lri $IX1,    #0xd66c
lri $WR1,    #0xb9fa
cw 0x5
call send_back  ; 24 (0x0018)

lri $AR1,    #0x7c24
lri $IX1,    #0x3492
lri $WR1,    #0xbe64
cw 0x5
call send_back  ; 25 (0x0019)

lri $AR1,    #0x77ec
lri $IX1,    #0x753c
lri $WR1,    #0xf2fa
cw 0x5
call send_back  ; 26 (0x001a)

lri $AR1,    #0xbe92
lri $IX1,    #0x1bb8
lri $WR1,    #0x995a
cw 0x5
call send_back  ; 27 (0x001b)

lri $AR1,    #0x629e
lri $IX1,    #0xbc28
lri $WR1,    #0x9be4
cw 0x5
call send_back  ; 28 (0x001c)

lri $AR1,    #0x9288
lri $IX1,    #0x5c80
lri $WR1,    #0x26cc
cw 0x5
call send_back  ; 29 (0x001d)

lri $AR1,    #0x39a0
lri $IX1,    #0x6cd6
lri $WR1,    #0xcd88
cw 0x5
call send_back  ; 30 (0x001e)

lri $AR1,    #0x8460
lri $IX1,    #0xfd6e
lri $WR1,    #0xc064
cw 0x5
call send_back  ; 31 (0x001f)

lri $AR1,    #0x5876
lri $IX1,    #0x2b42
lri $WR1,    #0xa844
cw 0x5
call send_back  ; 32 (0x0020)

lri $AR1,    #0x7dec
lri $IX1,    #0x1044
lri $WR1,    #0xb322
cw 0x5
call send_back  ; 33 (0x0021)

lri $AR1,    #0x813a
lri $IX1,    #0x25c2
lri $WR1,    #0xf316
cw 0x5
call send_back  ; 34 (0x0022)

lri $AR1,    #0x243e
lri $IX1,    #0xe7b4
lri $WR1,    #0xb160
cw 0x5
call send_back  ; 35 (0x0023)

lri $AR1,    #0x4d94
lri $IX1,    #0x6d32
lri $WR1,    #0x1204
cw 0x5
call send_back  ; 36 (0x0024)

lri $AR1,    #0xf772
lri $IX1,    #0xaee4
lri $WR1,    #0x273a
cw 0x5
call send_back  ; 37 (0x0025)

lri $AR1,    #0xe092
lri $IX1,    #0xd258
lri $WR1,    #0x9500
cw 0x5
call send_back  ; 38 (0x0026)

lri $AR1,    #0x30fc
lri $IX1,    #0x2d8a
lri $WR1,    #0xd132
cw 0x5
call send_back  ; 39 (0x0027)

lri $AR1,    #0x79aa
lri $IX1,    #0x27d2
lri $WR1,    #0x8100
cw 0x5
call send_back  ; 40 (0x0028)

lri $AR1,    #0xbb64
lri $IX1,    #0x67d4
lri $WR1,    #0x4792
cw 0x5
call send_back  ; 41 (0x0029)

lri $AR1,    #0x9198
lri $IX1,    #0xaea6
lri $WR1,    #0xc17e
cw 0x5
call send_back  ; 42 (0x002a)

lri $AR1,    #0xb8ce
lri $IX1,    #0x79ac
lri $WR1,    #0x1f7e
cw 0x5
call send_back  ; 43 (0x002b)

lri $AR1,    #0x5e28
lri $IX1,    #0xd5ac
lri $WR1,    #0x08fc
cw 0x5
call send_back  ; 44 (0x002c)

lri $AR1,    #0x845a
lri $IX1,    #0xa9b8
lri $WR1,    #0x6d1c
cw 0x5
call send_back  ; 45 (0x002d)

lri $AR1,    #0x1acc
lri $IX1,    #0xf306
lri $WR1,    #0xebde
cw 0x5
call send_back  ; 46 (0x002e)

lri $AR1,    #0x8cae
lri $IX1,    #0x5892
lri $WR1,    #0x78c2
cw 0x5
call send_back  ; 47 (0x002f)

lri $AR1,    #0x5ffe
lri $IX1,    #0xd8d2
lri $WR1,    #0x511e
cw 0x5
call send_back  ; 48 (0x0030)

lri $AR1,    #0x74c2
lri $IX1,    #0x459a
lri $WR1,    #0xfba2
cw 0x5
call send_back  ; 49 (0x0031)

lri $AR1,    #0x4c3c
lri $IX1,    #0xbd3a
lri $WR1,    #0x9138
cw 0x5
call send_back  ; 50 (0x0032)

lri $AR1,    #0x322c
lri $IX1,    #0xc2e4
lri $WR1,    #0xd6e4
cw 0x5
call send_back  ; 51 (0x0033)

lri $AR1,    #0x65cc
lri $IX1,    #0x803a
lri $WR1,    #0xe3e0
cw 0x5
call send_back  ; 52 (0x0034)

lri $AR1,    #0x0708
lri $IX1,    #0xfe9e
lri $WR1,    #0x9294
cw 0x5
call send_back  ; 53 (0x0035)

lri $AR1,    #0x0cee
lri $IX1,    #0x8804
lri $WR1,    #0x31ae
cw 0x5
call send_back  ; 54 (0x0036)

lri $AR1,    #0xd7d0
lri $IX1,    #0xa072
lri $WR1,    #0xa858
cw 0x5
call send_back  ; 55 (0x0037)

lri $AR1,    #0x32a6
lri $IX1,    #0xd796
lri $WR1,    #0x1f92
cw 0x5
call send_back  ; 56 (0x0038)

lri $AR1,    #0x1c24
lri $IX1,    #0xbe3c
lri $WR1,    #0x5066
cw 0x5
call send_back  ; 57 (0x0039)

lri $AR1,    #0xf0e8
lri $IX1,    #0x493c
lri $WR1,    #0x5618
cw 0x5
call send_back  ; 58 (0x003a)

lri $AR1,    #0x23e8
lri $IX1,    #0xbbaa
lri $WR1,    #0xd5a8
cw 0x5
call send_back  ; 59 (0x003b)

lri $AR1,    #0xb53e
lri $IX1,    #0x99a8
lri $WR1,    #0xbf48
cw 0x5
call send_back  ; 60 (0x003c)

lri $AR1,    #0x40b2
lri $IX1,    #0x24fc
lri $WR1,    #0x006a
cw 0x5
call send_back  ; 61 (0x003d)

lri $AR1,    #0x0f9e
lri $IX1,    #0xce64
lri $WR1,    #0xda44
cw 0x5
call send_back  ; 62 (0x003e)

lri $AR1,    #0x35e8
lri $IX1,    #0x1d98
lri $WR1,    #0x8d9e
cw 0x5
call send_back  ; 63 (0x003f)

lri $AR1,    #0x03a6
lri $IX1,    #0x1d20
lri $WR1,    #0x745a
cw 0x5
call send_back  ; 64 (0x0040)

lri $AR1,    #0xc090
lri $IX1,    #0xafa6
lri $WR1,    #0x8b1e
cw 0x5
call send_back  ; 65 (0x0041)

lri $AR1,    #0x12ea
lri $IX1,    #0x6fcc
lri $WR1,    #0x33b2
cw 0x5
call send_back  ; 66 (0x0042)

lri $AR1,    #0xb23a
lri $IX1,    #0x4a54
lri $WR1,    #0x6fca
cw 0x5
call send_back  ; 67 (0x0043)

lri $AR1,    #0x3b80
lri $IX1,    #0x93ee
lri $WR1,    #0x8856
cw 0x5
call send_back  ; 68 (0x0044)

lri $AR1,    #0xa0f0
lri $IX1,    #0x2902
lri $WR1,    #0x810e
cw 0x5
call send_back  ; 69 (0x0045)

lri $AR1,    #0xf688
lri $IX1,    #0xb21c
lri $WR1,    #0xecbe
cw 0x5
call send_back  ; 70 (0x0046)

lri $AR1,    #0x30a0
lri $IX1,    #0x5600
lri $WR1,    #0x2da8
cw 0x5
call send_back  ; 71 (0x0047)

lri $AR1,    #0xfec2
lri $IX1,    #0x751a
lri $WR1,    #0xff7c
cw 0x5
call send_back  ; 72 (0x0048)

lri $AR1,    #0x18f6
lri $IX1,    #0xa00a
lri $WR1,    #0x182a
cw 0x5
call send_back  ; 73 (0x0049)

lri $AR1,    #0x700e
lri $IX1,    #0xee76
lri $WR1,    #0x0c66
cw 0x5
call send_back  ; 74 (0x004a)

lri $AR1,    #0xe504
lri $IX1,    #0x4a3e
lri $WR1,    #0x3a30
cw 0x5
call send_back  ; 75 (0x004b)

lri $AR1,    #0xc4e0
lri $IX1,    #0x6924
lri $WR1,    #0x33b4
cw 0x5
call send_back  ; 76 (0x004c)

lri $AR1,    #0xa0c8
lri $IX1,    #0x9aa8
lri $WR1,    #0x739c
cw 0x5
call send_back  ; 77 (0x004d)

lri $AR1,    #0x7762
lri $IX1,    #0x990a
lri $WR1,    #0xa27c
cw 0x5
call send_back  ; 78 (0x004e)

lri $AR1,    #0xdad2
lri $IX1,    #0xd42a
lri $WR1,    #0x9ff0
cw 0x5
call send_back  ; 79 (0x004f)

lri $AR1,    #0xb88c
lri $IX1,    #0x90d4
lri $WR1,    #0x6008
cw 0x5
call send_back  ; 80 (0x0050)

lri $AR1,    #0x2f2c
lri $IX1,    #0xbce6
lri $WR1,    #0x8e1c
cw 0x5
call send_back  ; 81 (0x0051)

lri $AR1,    #0xe7b2
lri $IX1,    #0x3e2c
lri $WR1,    #0x305e
cw 0x5
call send_back  ; 82 (0x0052)

lri $AR1,    #0x9ace
lri $IX1,    #0xb2d0
lri $WR1,    #0x95a8
cw 0x5
call send_back  ; 83 (0x0053)

lri $AR1,    #0x59ee
lri $IX1,    #0x7e94
lri $WR1,    #0x1494
cw 0x5
call send_back  ; 84 (0x0054)

lri $AR1,    #0xbda0
lri $IX1,    #0x9cae
lri $WR1,    #0x9ed0
cw 0x5
call send_back  ; 85 (0x0055)

lri $AR1,    #0xb0ec
lri $IX1,    #0xcdf4
lri $WR1,    #0x262c
cw 0x5
call send_back  ; 86 (0x0056)

lri $AR1,    #0x9376
lri $IX1,    #0xde22
lri $WR1,    #0xe95a
cw 0x5
call send_back  ; 87 (0x0057)

lri $AR1,    #0x9d5c
lri $IX1,    #0xba48
lri $WR1,    #0x0b10
cw 0x5
call send_back  ; 88 (0x0058)

lri $AR1,    #0xaaf2
lri $IX1,    #0xf9fc
lri $WR1,    #0x50a4
cw 0x5
call send_back  ; 89 (0x0059)

lri $AR1,    #0x91b6
lri $IX1,    #0x4e4a
lri $WR1,    #0x2c86
cw 0x5
call send_back  ; 90 (0x005a)

lri $AR1,    #0x1bca
lri $IX1,    #0xde78
lri $WR1,    #0xd9e8
cw 0x5
call send_back  ; 91 (0x005b)

lri $AR1,    #0xbe8a
lri $IX1,    #0x27a6
lri $WR1,    #0x53b0
cw 0x5
call send_back  ; 92 (0x005c)

lri $AR1,    #0x1450
lri $IX1,    #0x139c
lri $WR1,    #0xa416
cw 0x5
call send_back  ; 93 (0x005d)

lri $AR1,    #0xd1ea
lri $IX1,    #0x8b8a
lri $WR1,    #0x72c0
cw 0x5
call send_back  ; 94 (0x005e)

lri $AR1,    #0x68b2
lri $IX1,    #0x4c7a
lri $WR1,    #0x772e
cw 0x5
call send_back  ; 95 (0x005f)

lri $AR1,    #0x804e
lri $IX1,    #0x2714
lri $WR1,    #0x52b2
cw 0x5
call send_back  ; 96 (0x0060)

lri $AR1,    #0xbcec
lri $IX1,    #0x505a
lri $WR1,    #0xd3a0
cw 0x5
call send_back  ; 97 (0x0061)

lri $AR1,    #0xf584
lri $IX1,    #0xdf92
lri $WR1,    #0xb99a
cw 0x5
call send_back  ; 98 (0x0062)

lri $AR1,    #0x4cd0
lri $IX1,    #0xf1a8
lri $WR1,    #0x2092
cw 0x5
call send_back  ; 99 (0x0063)

lri $AR1,    #0x10d4
lri $IX1,    #0xc8f2
lri $WR1,    #0x864a
cw 0x5
call send_back  ; 100 (0x0064)

lri $AR1,    #0x9c10
lri $IX1,    #0xf4c2
lri $WR1,    #0x1280
cw 0x5
call send_back  ; 101 (0x0065)

lri $AR1,    #0xe028
lri $IX1,    #0xa762
lri $WR1,    #0x5276
cw 0x5
call send_back  ; 102 (0x0066)

lri $AR1,    #0x1ad4
lri $IX1,    #0x814a
lri $WR1,    #0x3a22
cw 0x5
call send_back  ; 103 (0x0067)

lri $AR1,    #0x4a50
lri $IX1,    #0xeb82
lri $WR1,    #0x8d18
cw 0x5
call send_back  ; 104 (0x0068)

lri $AR1,    #0xa9ac
lri $IX1,    #0x1d52
lri $WR1,    #0x7e16
cw 0x5
call send_back  ; 105 (0x0069)

lri $AR1,    #0x610e
lri $IX1,    #0x7f2e
lri $WR1,    #0xcb18
cw 0x5
call send_back  ; 106 (0x006a)

lri $AR1,    #0x825e
lri $IX1,    #0x61e2
lri $WR1,    #0xb02a
cw 0x5
call send_back  ; 107 (0x006b)

lri $AR1,    #0x883a
lri $IX1,    #0x9b34
lri $WR1,    #0x652a
cw 0x5
call send_back  ; 108 (0x006c)

lri $AR1,    #0x0182
lri $IX1,    #0xb536
lri $WR1,    #0x19c2
cw 0x5
call send_back  ; 109 (0x006d)

lri $AR1,    #0x9f80
lri $IX1,    #0xdcfc
lri $WR1,    #0x7dd2
cw 0x5
call send_back  ; 110 (0x006e)

lri $AR1,    #0xbf50
lri $IX1,    #0x7f34
lri $WR1,    #0x614e
cw 0x5
call send_back  ; 111 (0x006f)

lri $AR1,    #0xc90c
lri $IX1,    #0x8d84
lri $WR1,    #0x5b6a
cw 0x5
call send_back  ; 112 (0x0070)

lri $AR1,    #0xf4a8
lri $IX1,    #0xa17e
lri $WR1,    #0x2d34
cw 0x5
call send_back  ; 113 (0x0071)

lri $AR1,    #0x5fce
lri $IX1,    #0x21b2
lri $WR1,    #0xbe46
cw 0x5
call send_back  ; 114 (0x0072)

lri $AR1,    #0xf3a2
lri $IX1,    #0x9caa
lri $WR1,    #0x0720
cw 0x5
call send_back  ; 115 (0x0073)

lri $AR1,    #0x5470
lri $IX1,    #0x0e50
lri $WR1,    #0xa3a2
cw 0x5
call send_back  ; 116 (0x0074)

lri $AR1,    #0x21b2
lri $IX1,    #0xd8d8
lri $WR1,    #0xdd42
cw 0x5
call send_back  ; 117 (0x0075)

lri $AR1,    #0x98cc
lri $IX1,    #0xb8bc
lri $WR1,    #0xda9c
cw 0x5
call send_back  ; 118 (0x0076)

lri $AR1,    #0x03c2
lri $IX1,    #0x2060
lri $WR1,    #0xb538
cw 0x5
call send_back  ; 119 (0x0077)

lri $AR1,    #0x9dfc
lri $IX1,    #0x37b2
lri $WR1,    #0x10e2
cw 0x5
call send_back  ; 120 (0x0078)

lri $AR1,    #0x2b3e
lri $IX1,    #0x9fc4
lri $WR1,    #0x574a
cw 0x5
call send_back  ; 121 (0x0079)

lri $AR1,    #0x51c4
lri $IX1,    #0x5e18
lri $WR1,    #0xa936
cw 0x5
call send_back  ; 122 (0x007a)

lri $AR1,    #0xcd68
lri $IX1,    #0xce8e
lri $WR1,    #0x86ca
cw 0x5
call send_back  ; 123 (0x007b)

lri $AR1,    #0x9c70
lri $IX1,    #0xcc54
lri $WR1,    #0xe68c
cw 0x5
call send_back  ; 124 (0x007c)

lri $AR1,    #0x2512
lri $IX1,    #0xa152
lri $WR1,    #0x6704
cw 0x5
call send_back  ; 125 (0x007d)

lri $AR1,    #0x40f2
lri $IX1,    #0x22f4
lri $WR1,    #0xdaec
cw 0x5
call send_back  ; 126 (0x007e)

lri $AR1,    #0x10f0
lri $IX1,    #0x6d84
lri $WR1,    #0x92c6
cw 0x5
call send_back  ; 127 (0x007f)

lri $AR1,    #0x4d62
lri $IX1,    #0x8c4c
lri $WR1,    #0x39be
cw 0x5
call send_back  ; 128 (0x0080)

; We're done, DO NOT DELETE THIS LINE
jmp end_of_test

