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

lri $AR1,    #0x5c8a
lri $IX1,    #0xc852
lri $WR1,    #0xb180
cw 0xd
call send_back  ; 37029 (0x90a5)

lri $AR1,    #0xa88b
lri $IX1,    #0x126c
lri $WR1,    #0x91a0
cw 0xd
call send_back  ; 37030 (0x90a6)

lri $AR1,    #0x942f
lri $IX1,    #0x5b4a
lri $WR1,    #0x9fae
cw 0xd
call send_back  ; 37031 (0x90a7)

lri $AR1,    #0x46f5
lri $IX1,    #0x04a8
lri $WR1,    #0x68a3
cw 0xd
call send_back  ; 37032 (0x90a8)

lri $AR1,    #0x5bcf
lri $IX1,    #0xfafa
lri $WR1,    #0xd9f4
cw 0xd
call send_back  ; 37033 (0x90a9)

lri $AR1,    #0x5108
lri $IX1,    #0x6112
lri $WR1,    #0xb327
cw 0xd
call send_back  ; 37034 (0x90aa)

lri $AR1,    #0xe7cf
lri $IX1,    #0xb452
lri $WR1,    #0xd9cc
cw 0xd
call send_back  ; 37035 (0x90ab)

lri $AR1,    #0xeca1
lri $IX1,    #0x4d34
lri $WR1,    #0x8453
cw 0xd
call send_back  ; 37036 (0x90ac)

lri $AR1,    #0xdd83
lri $IX1,    #0x778a
lri $WR1,    #0xa9db
cw 0xd
call send_back  ; 37037 (0x90ad)

lri $AR1,    #0x123c
lri $IX1,    #0x8934
lri $WR1,    #0xa284
cw 0xd
call send_back  ; 37038 (0x90ae)

lri $AR1,    #0x4e73
lri $IX1,    #0x3dac
lri $WR1,    #0xc55a
cw 0xd
call send_back  ; 37039 (0x90af)

lri $AR1,    #0xdcfb
lri $IX1,    #0x1022
lri $WR1,    #0x7666
cw 0xd
call send_back  ; 37040 (0x90b0)

lri $AR1,    #0xdf1d
lri $IX1,    #0x3598
lri $WR1,    #0x60f6
cw 0xd
call send_back  ; 37041 (0x90b1)

lri $AR1,    #0xba31
lri $IX1,    #0x13b0
lri $WR1,    #0x67a6
cw 0xd
call send_back  ; 37042 (0x90b2)

lri $AR1,    #0x614b
lri $IX1,    #0x808c
lri $WR1,    #0x8542
cw 0xd
call send_back  ; 37043 (0x90b3)

lri $AR1,    #0x8068
lri $IX1,    #0x9b8a
lri $WR1,    #0xcf13
cw 0xd
call send_back  ; 37044 (0x90b4)

lri $AR1,    #0x29ca
lri $IX1,    #0x8632
lri $WR1,    #0x6298
cw 0xd
call send_back  ; 37045 (0x90b5)

lri $AR1,    #0x75ea
lri $IX1,    #0x9018
lri $WR1,    #0xa64d
cw 0xd
call send_back  ; 37046 (0x90b6)

lri $AR1,    #0x69c0
lri $IX1,    #0x681e
lri $WR1,    #0xc685
cw 0xd
call send_back  ; 37047 (0x90b7)

lri $AR1,    #0xcec7
lri $IX1,    #0x78c0
lri $WR1,    #0x9ce8
cw 0xd
call send_back  ; 37048 (0x90b8)

lri $AR1,    #0xd36d
lri $IX1,    #0x9cde
lri $WR1,    #0x9aae
cw 0xd
call send_back  ; 37049 (0x90b9)

lri $AR1,    #0xaa61
lri $IX1,    #0xb5b8
lri $WR1,    #0xbb16
cw 0xd
call send_back  ; 37050 (0x90ba)

lri $AR1,    #0xd273
lri $IX1,    #0x3a80
lri $WR1,    #0xd53c
cw 0xd
call send_back  ; 37051 (0x90bb)

lri $AR1,    #0x986e
lri $IX1,    #0x7d48
lri $WR1,    #0xb9ce
cw 0xd
call send_back  ; 37052 (0x90bc)

lri $AR1,    #0x9fa1
lri $IX1,    #0xf89c
lri $WR1,    #0x42be
cw 0xd
call send_back  ; 37053 (0x90bd)

lri $AR1,    #0xad87
lri $IX1,    #0x6496
lri $WR1,    #0x3874
cw 0xd
call send_back  ; 37054 (0x90be)

lri $AR1,    #0x783b
lri $IX1,    #0x71d2
lri $WR1,    #0x9198
cw 0xd
call send_back  ; 37055 (0x90bf)

lri $AR1,    #0xaf2b
lri $IX1,    #0xbbe6
lri $WR1,    #0xf803
cw 0xd
call send_back  ; 37056 (0x90c0)

lri $AR1,    #0x40be
lri $IX1,    #0xace0
lri $WR1,    #0x86e5
cw 0xd
call send_back  ; 37057 (0x90c1)

lri $AR1,    #0x5f49
lri $IX1,    #0x866c
lri $WR1,    #0xc3b2
cw 0xd
call send_back  ; 37058 (0x90c2)

lri $AR1,    #0x5b29
lri $IX1,    #0x7520
lri $WR1,    #0x44e2
cw 0xd
call send_back  ; 37059 (0x90c3)

lri $AR1,    #0x6f45
lri $IX1,    #0x5590
lri $WR1,    #0xaf1f
cw 0xd
call send_back  ; 37060 (0x90c4)

lri $AR1,    #0x78cb
lri $IX1,    #0x8a98
lri $WR1,    #0x8ad8
cw 0xd
call send_back  ; 37061 (0x90c5)

lri $AR1,    #0x2286
lri $IX1,    #0xcfb2
lri $WR1,    #0x51f4
cw 0xd
call send_back  ; 37062 (0x90c6)

lri $AR1,    #0x2f85
lri $IX1,    #0x317a
lri $WR1,    #0x567e
cw 0xd
call send_back  ; 37063 (0x90c7)

lri $AR1,    #0x2879
lri $IX1,    #0x2a76
lri $WR1,    #0x2910
cw 0xd
call send_back  ; 37064 (0x90c8)

lri $AR1,    #0x9a91
lri $IX1,    #0x292e
lri $WR1,    #0x4ee5
cw 0xd
call send_back  ; 37065 (0x90c9)

lri $AR1,    #0xb61a
lri $IX1,    #0x6090
lri $WR1,    #0x4533
cw 0xd
call send_back  ; 37066 (0x90ca)

lri $AR1,    #0x4ecf
lri $IX1,    #0x92de
lri $WR1,    #0xe0e1
cw 0xd
call send_back  ; 37067 (0x90cb)

lri $AR1,    #0x66ff
lri $IX1,    #0x6b02
lri $WR1,    #0x6f1f
cw 0xd
call send_back  ; 37068 (0x90cc)

lri $AR1,    #0x6a89
lri $IX1,    #0xcf7c
lri $WR1,    #0x74f1
cw 0xd
call send_back  ; 37069 (0x90cd)

lri $AR1,    #0x6dd9
lri $IX1,    #0x45ec
lri $WR1,    #0x6945
cw 0xd
call send_back  ; 37070 (0x90ce)

lri $AR1,    #0x88bf
lri $IX1,    #0xdd48
lri $WR1,    #0x26a0
cw 0xd
call send_back  ; 37071 (0x90cf)

lri $AR1,    #0x9c83
lri $IX1,    #0x08d2
lri $WR1,    #0x76eb
cw 0xd
call send_back  ; 37072 (0x90d0)

lri $AR1,    #0x5fe9
lri $IX1,    #0x3cdc
lri $WR1,    #0x6578
cw 0xd
call send_back  ; 37073 (0x90d1)

lri $AR1,    #0xcb8a
lri $IX1,    #0xda62
lri $WR1,    #0x50d4
cw 0xd
call send_back  ; 37074 (0x90d2)

lri $AR1,    #0xd446
lri $IX1,    #0xe5ac
lri $WR1,    #0x6763
cw 0xd
call send_back  ; 37075 (0x90d3)

lri $AR1,    #0xa92d
lri $IX1,    #0x07c0
lri $WR1,    #0xaf6a
cw 0xd
call send_back  ; 37076 (0x90d4)

lri $AR1,    #0x459d
lri $IX1,    #0x5218
lri $WR1,    #0x5491
cw 0xd
call send_back  ; 37077 (0x90d5)

lri $AR1,    #0x77f0
lri $IX1,    #0x0748
lri $WR1,    #0x9263
cw 0xd
call send_back  ; 37078 (0x90d6)

lri $AR1,    #0x608c
lri $IX1,    #0x2af0
lri $WR1,    #0x94e9
cw 0xd
call send_back  ; 37079 (0x90d7)

lri $AR1,    #0x449b
lri $IX1,    #0xaedc
lri $WR1,    #0xedeb
cw 0xd
call send_back  ; 37080 (0x90d8)

lri $AR1,    #0x3b49
lri $IX1,    #0x9a7a
lri $WR1,    #0x26e9
cw 0xd
call send_back  ; 37081 (0x90d9)

lri $AR1,    #0x9bc7
lri $IX1,    #0x65a8
lri $WR1,    #0x654e
cw 0xd
call send_back  ; 37082 (0x90da)

lri $AR1,    #0x85f1
lri $IX1,    #0xcefa
lri $WR1,    #0x680e
cw 0xd
call send_back  ; 37083 (0x90db)

lri $AR1,    #0xc6e3
lri $IX1,    #0x996c
lri $WR1,    #0xbb18
cw 0xd
call send_back  ; 37084 (0x90dc)

lri $AR1,    #0x9649
lri $IX1,    #0xb4be
lri $WR1,    #0xb6c4
cw 0xd
call send_back  ; 37085 (0x90dd)

lri $AR1,    #0x98c0
lri $IX1,    #0x3f46
lri $WR1,    #0x9ec8
cw 0xd
call send_back  ; 37086 (0x90de)

lri $AR1,    #0x170d
lri $IX1,    #0x6fa2
lri $WR1,    #0x55c2
cw 0xd
call send_back  ; 37087 (0x90df)

lri $AR1,    #0xd194
lri $IX1,    #0xa7f4
lri $WR1,    #0x7fee
cw 0xd
call send_back  ; 37088 (0x90e0)

lri $AR1,    #0x22b3
lri $IX1,    #0x9c1a
lri $WR1,    #0x78ff
cw 0xd
call send_back  ; 37089 (0x90e1)

lri $AR1,    #0xa285
lri $IX1,    #0x6fa0
lri $WR1,    #0x8edb
cw 0xd
call send_back  ; 37090 (0x90e2)

lri $AR1,    #0x11b1
lri $IX1,    #0xdfbc
lri $WR1,    #0x6410
cw 0xd
call send_back  ; 37091 (0x90e3)

lri $AR1,    #0x58b2
lri $IX1,    #0xd12a
lri $WR1,    #0x92c5
cw 0xd
call send_back  ; 37092 (0x90e4)

lri $AR1,    #0x4450
lri $IX1,    #0xd140
lri $WR1,    #0x8212
cw 0xd
call send_back  ; 37093 (0x90e5)

lri $AR1,    #0x37b9
lri $IX1,    #0x24ea
lri $WR1,    #0xbd6c
cw 0xd
call send_back  ; 37094 (0x90e6)

lri $AR1,    #0xafe6
lri $IX1,    #0xc010
lri $WR1,    #0xdf17
cw 0xd
call send_back  ; 37095 (0x90e7)

lri $AR1,    #0x8bbe
lri $IX1,    #0xd2fe
lri $WR1,    #0x244b
cw 0xd
call send_back  ; 37096 (0x90e8)

lri $AR1,    #0x77a6
lri $IX1,    #0x6352
lri $WR1,    #0x6b09
cw 0xd
call send_back  ; 37097 (0x90e9)

lri $AR1,    #0x7af5
lri $IX1,    #0x8110
lri $WR1,    #0x8736
cw 0xd
call send_back  ; 37098 (0x90ea)

lri $AR1,    #0x58ea
lri $IX1,    #0xf862
lri $WR1,    #0x6e11
cw 0xd
call send_back  ; 37099 (0x90eb)

lri $AR1,    #0x9eac
lri $IX1,    #0xc39a
lri $WR1,    #0x8c88
cw 0xd
call send_back  ; 37100 (0x90ec)

lri $AR1,    #0x32f3
lri $IX1,    #0xd8ee
lri $WR1,    #0x9687
cw 0xd
call send_back  ; 37101 (0x90ed)

lri $AR1,    #0x6bcc
lri $IX1,    #0x1ab6
lri $WR1,    #0x9acc
cw 0xd
call send_back  ; 37102 (0x90ee)

lri $AR1,    #0xf236
lri $IX1,    #0x106e
lri $WR1,    #0x8850
cw 0xd
call send_back  ; 37103 (0x90ef)

lri $AR1,    #0x72eb
lri $IX1,    #0x825e
lri $WR1,    #0x77dc
cw 0xd
call send_back  ; 37104 (0x90f0)

lri $AR1,    #0xa728
lri $IX1,    #0xf92e
lri $WR1,    #0xd5cb
cw 0xd
call send_back  ; 37105 (0x90f1)

lri $AR1,    #0x7fc9
lri $IX1,    #0x5e38
lri $WR1,    #0x5597
cw 0xd
call send_back  ; 37106 (0x90f2)

lri $AR1,    #0x107d
lri $IX1,    #0x68e2
lri $WR1,    #0x4a3c
cw 0xd
call send_back  ; 37107 (0x90f3)

lri $AR1,    #0xa062
lri $IX1,    #0x08e0
lri $WR1,    #0x73ff
cw 0xd
call send_back  ; 37108 (0x90f4)

lri $AR1,    #0x60f4
lri $IX1,    #0x749e
lri $WR1,    #0xedac
cw 0xd
call send_back  ; 37109 (0x90f5)

lri $AR1,    #0x9b6e
lri $IX1,    #0xceaa
lri $WR1,    #0x80de
cw 0xd
call send_back  ; 37110 (0x90f6)

lri $AR1,    #0x88a2
lri $IX1,    #0x546a
lri $WR1,    #0xaa57
cw 0xd
call send_back  ; 37111 (0x90f7)

lri $AR1,    #0x5e6f
lri $IX1,    #0x9bf2
lri $WR1,    #0xdcfd
cw 0xd
call send_back  ; 37112 (0x90f8)

lri $AR1,    #0xc9b9
lri $IX1,    #0x6e44
lri $WR1,    #0x7b94
cw 0xd
call send_back  ; 37113 (0x90f9)

lri $AR1,    #0x6b34
lri $IX1,    #0x26da
lri $WR1,    #0x6ebb
cw 0xd
call send_back  ; 37114 (0x90fa)

lri $AR1,    #0x60ca
lri $IX1,    #0x10aa
lri $WR1,    #0x8e3a
cw 0xd
call send_back  ; 37115 (0x90fb)

lri $AR1,    #0x4ce7
lri $IX1,    #0xdc9c
lri $WR1,    #0xaa40
cw 0xd
call send_back  ; 37116 (0x90fc)

lri $AR1,    #0x8895
lri $IX1,    #0xe4a0
lri $WR1,    #0xba8b
cw 0xd
call send_back  ; 37117 (0x90fd)

lri $AR1,    #0x1c90
lri $IX1,    #0x5a4a
lri $WR1,    #0x7721
cw 0xd
call send_back  ; 37118 (0x90fe)

lri $AR1,    #0xa14b
lri $IX1,    #0x9f3a
lri $WR1,    #0xbf98
cw 0xd
call send_back  ; 37119 (0x90ff)

lri $AR1,    #0x9d1a
lri $IX1,    #0xb91e
lri $WR1,    #0x9b86
cw 0xd
call send_back  ; 37120 (0x9100)

lri $AR1,    #0x435b
lri $IX1,    #0xfaa6
lri $WR1,    #0xa82c
cw 0xd
call send_back  ; 37121 (0x9101)

lri $AR1,    #0x76e9
lri $IX1,    #0x7638
lri $WR1,    #0x54d9
cw 0xd
call send_back  ; 37122 (0x9102)

lri $AR1,    #0x85b6
lri $IX1,    #0x7eae
lri $WR1,    #0xc137
cw 0xd
call send_back  ; 37123 (0x9103)

lri $AR1,    #0x1ace
lri $IX1,    #0x3df0
lri $WR1,    #0xc5e8
cw 0xd
call send_back  ; 37124 (0x9104)

lri $AR1,    #0x3f98
lri $IX1,    #0x20c6
lri $WR1,    #0x09ae
cw 0xd
call send_back  ; 37125 (0x9105)

lri $AR1,    #0x54a2
lri $IX1,    #0x6298
lri $WR1,    #0xe28a
cw 0xd
call send_back  ; 37126 (0x9106)

lri $AR1,    #0x0dd2
lri $IX1,    #0x438e
lri $WR1,    #0x83fa
cw 0xd
call send_back  ; 37127 (0x9107)

lri $AR1,    #0x9540
lri $IX1,    #0x46c4
lri $WR1,    #0x80d2
cw 0xd
call send_back  ; 37128 (0x9108)

lri $AR1,    #0x6390
lri $IX1,    #0x1de4
lri $WR1,    #0x50dd
cw 0xd
call send_back  ; 37129 (0x9109)

lri $AR1,    #0x7c16
lri $IX1,    #0x8314
lri $WR1,    #0xb7ae
cw 0xd
call send_back  ; 37130 (0x910a)

lri $AR1,    #0x6ea1
lri $IX1,    #0x115e
lri $WR1,    #0x7bda
cw 0xd
call send_back  ; 37131 (0x910b)

lri $AR1,    #0xa828
lri $IX1,    #0x0f80
lri $WR1,    #0x330f
cw 0xd
call send_back  ; 37132 (0x910c)

lri $AR1,    #0x973f
lri $IX1,    #0xf860
lri $WR1,    #0x611f
cw 0xd
call send_back  ; 37133 (0x910d)

lri $AR1,    #0xd898
lri $IX1,    #0x3814
lri $WR1,    #0xa597
cw 0xd
call send_back  ; 37134 (0x910e)

lri $AR1,    #0x635a
lri $IX1,    #0xf39a
lri $WR1,    #0x94e9
cw 0xd
call send_back  ; 37135 (0x910f)

lri $AR1,    #0x64b2
lri $IX1,    #0xa544
lri $WR1,    #0x7fbc
cw 0xd
call send_back  ; 37136 (0x9110)

lri $AR1,    #0x855b
lri $IX1,    #0xbf12
lri $WR1,    #0xb470
cw 0xd
call send_back  ; 37137 (0x9111)

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