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

lri $AR1,    #0x9d66
lri $IX1,    #0x9e8c
lri $WR1,    #0x86f2
cw 0xd
call send_back  ; 8084 (0x1f94)

lri $AR1,    #0x8969
lri $IX1,    #0x8edc
lri $WR1,    #0x3704
cw 0xd
call send_back  ; 8085 (0x1f95)

lri $AR1,    #0x55c1
lri $IX1,    #0x6f8a
lri $WR1,    #0x5ea7
cw 0xd
call send_back  ; 8086 (0x1f96)

lri $AR1,    #0x5326
lri $IX1,    #0xcb1e
lri $WR1,    #0xa93f
cw 0xd
call send_back  ; 8087 (0x1f97)

lri $AR1,    #0x5047
lri $IX1,    #0x1cf0
lri $WR1,    #0x7fdc
cw 0xd
call send_back  ; 8088 (0x1f98)

lri $AR1,    #0x677e
lri $IX1,    #0x1d34
lri $WR1,    #0xadb8
cw 0xd
call send_back  ; 8089 (0x1f99)

lri $AR1,    #0x7960
lri $IX1,    #0x0c38
lri $WR1,    #0x32e9
cw 0xd
call send_back  ; 8090 (0x1f9a)

lri $AR1,    #0x4ddb
lri $IX1,    #0x6534
lri $WR1,    #0xac7e
cw 0xd
call send_back  ; 8091 (0x1f9b)

lri $AR1,    #0x3d4d
lri $IX1,    #0x8474
lri $WR1,    #0x4e6e
cw 0xd
call send_back  ; 8092 (0x1f9c)

lri $AR1,    #0x7e54
lri $IX1,    #0xe43a
lri $WR1,    #0xa58b
cw 0xd
call send_back  ; 8093 (0x1f9d)

lri $AR1,    #0xa4ad
lri $IX1,    #0x7f10
lri $WR1,    #0x14f6
cw 0xd
call send_back  ; 8094 (0x1f9e)

lri $AR1,    #0x60f3
lri $IX1,    #0x85f4
lri $WR1,    #0xa428
cw 0xd
call send_back  ; 8095 (0x1f9f)

lri $AR1,    #0x8887
lri $IX1,    #0xcc1c
lri $WR1,    #0x9824
cw 0xd
call send_back  ; 8096 (0x1fa0)

lri $AR1,    #0xb87e
lri $IX1,    #0xf1a6
lri $WR1,    #0xdbdc
cw 0xd
call send_back  ; 8097 (0x1fa1)

lri $AR1,    #0x65d3
lri $IX1,    #0x5210
lri $WR1,    #0xc959
cw 0xd
call send_back  ; 8098 (0x1fa2)

lri $AR1,    #0x40bf
lri $IX1,    #0xeab2
lri $WR1,    #0xd6c8
cw 0xd
call send_back  ; 8099 (0x1fa3)

lri $AR1,    #0x587d
lri $IX1,    #0xb11e
lri $WR1,    #0xdfd8
cw 0xd
call send_back  ; 8100 (0x1fa4)

lri $AR1,    #0xc84a
lri $IX1,    #0x08a6
lri $WR1,    #0x9d9e
cw 0xd
call send_back  ; 8101 (0x1fa5)

lri $AR1,    #0xc5f3
lri $IX1,    #0x11ec
lri $WR1,    #0x3c75
cw 0xd
call send_back  ; 8102 (0x1fa6)

lri $AR1,    #0x8dc6
lri $IX1,    #0x4eb8
lri $WR1,    #0x40fe
cw 0xd
call send_back  ; 8103 (0x1fa7)

lri $AR1,    #0xbf2b
lri $IX1,    #0x67ea
lri $WR1,    #0x72b8
cw 0xd
call send_back  ; 8104 (0x1fa8)

lri $AR1,    #0xa8bb
lri $IX1,    #0xaade
lri $WR1,    #0xac60
cw 0xd
call send_back  ; 8105 (0x1fa9)

lri $AR1,    #0xa229
lri $IX1,    #0xef10
lri $WR1,    #0x9f86
cw 0xd
call send_back  ; 8106 (0x1faa)

lri $AR1,    #0x45ca
lri $IX1,    #0xe448
lri $WR1,    #0xaa81
cw 0xd
call send_back  ; 8107 (0x1fab)

lri $AR1,    #0x0308
lri $IX1,    #0x2d2a
lri $WR1,    #0x354a
cw 0xd
call send_back  ; 8108 (0x1fac)

lri $AR1,    #0x7e8c
lri $IX1,    #0x016e
lri $WR1,    #0x8347
cw 0xd
call send_back  ; 8109 (0x1fad)

lri $AR1,    #0x6485
lri $IX1,    #0x3e9e
lri $WR1,    #0x659f
cw 0xd
call send_back  ; 8110 (0x1fae)

lri $AR1,    #0x94c3
lri $IX1,    #0xad9a
lri $WR1,    #0x1b26
cw 0xd
call send_back  ; 8111 (0x1faf)

lri $AR1,    #0x4802
lri $IX1,    #0xb6bc
lri $WR1,    #0x5070
cw 0xd
call send_back  ; 8112 (0x1fb0)

lri $AR1,    #0x5933
lri $IX1,    #0xa5ec
lri $WR1,    #0x7c0f
cw 0xd
call send_back  ; 8113 (0x1fb1)

lri $AR1,    #0x9d13
lri $IX1,    #0xdb76
lri $WR1,    #0xa0aa
cw 0xd
call send_back  ; 8114 (0x1fb2)

lri $AR1,    #0x85e1
lri $IX1,    #0xb5e4
lri $WR1,    #0xafd5
cw 0xd
call send_back  ; 8115 (0x1fb3)

lri $AR1,    #0x9880
lri $IX1,    #0x84ba
lri $WR1,    #0xbe5e
cw 0xd
call send_back  ; 8116 (0x1fb4)

lri $AR1,    #0x53db
lri $IX1,    #0x4b66
lri $WR1,    #0x5410
cw 0xd
call send_back  ; 8117 (0x1fb5)

lri $AR1,    #0x7ad4
lri $IX1,    #0x672a
lri $WR1,    #0x3e6c
cw 0xd
call send_back  ; 8118 (0x1fb6)

lri $AR1,    #0x948b
lri $IX1,    #0x2a4c
lri $WR1,    #0x4f8e
cw 0xd
call send_back  ; 8119 (0x1fb7)

lri $AR1,    #0x4e5f
lri $IX1,    #0x1274
lri $WR1,    #0x37a7
cw 0xd
call send_back  ; 8120 (0x1fb8)

lri $AR1,    #0x966b
lri $IX1,    #0x4764
lri $WR1,    #0x1134
cw 0xd
call send_back  ; 8121 (0x1fb9)

lri $AR1,    #0xa4c3
lri $IX1,    #0x6b08
lri $WR1,    #0xa580
cw 0xd
call send_back  ; 8122 (0x1fba)

lri $AR1,    #0x1d61
lri $IX1,    #0x52fa
lri $WR1,    #0x406b
cw 0xd
call send_back  ; 8123 (0x1fbb)

lri $AR1,    #0x5bf7
lri $IX1,    #0xe770
lri $WR1,    #0x802f
cw 0xd
call send_back  ; 8124 (0x1fbc)

lri $AR1,    #0xb67c
lri $IX1,    #0xfae2
lri $WR1,    #0xc703
cw 0xd
call send_back  ; 8125 (0x1fbd)

lri $AR1,    #0x72d2
lri $IX1,    #0x5912
lri $WR1,    #0x3258
cw 0xd
call send_back  ; 8126 (0x1fbe)

lri $AR1,    #0xaf3e
lri $IX1,    #0x6c02
lri $WR1,    #0x1c9e
cw 0xd
call send_back  ; 8127 (0x1fbf)

lri $AR1,    #0xf515
lri $IX1,    #0x8872
lri $WR1,    #0x9436
cw 0xd
call send_back  ; 8128 (0x1fc0)

lri $AR1,    #0x7864
lri $IX1,    #0x1b56
lri $WR1,    #0xbb99
cw 0xd
call send_back  ; 8129 (0x1fc1)

lri $AR1,    #0x86ec
lri $IX1,    #0x6d06
lri $WR1,    #0x9441
cw 0xd
call send_back  ; 8130 (0x1fc2)

lri $AR1,    #0x3c30
lri $IX1,    #0x5e7a
lri $WR1,    #0xa76f
cw 0xd
call send_back  ; 8131 (0x1fc3)

lri $AR1,    #0x97ff
lri $IX1,    #0x4870
lri $WR1,    #0xb554
cw 0xd
call send_back  ; 8132 (0x1fc4)

lri $AR1,    #0xf02f
lri $IX1,    #0xdbb0
lri $WR1,    #0x6caa
cw 0xd
call send_back  ; 8133 (0x1fc5)

lri $AR1,    #0xc5f2
lri $IX1,    #0x6d56
lri $WR1,    #0x8a5c
cw 0xd
call send_back  ; 8134 (0x1fc6)

lri $AR1,    #0xaa80
lri $IX1,    #0x596c
lri $WR1,    #0x8241
cw 0xd
call send_back  ; 8135 (0x1fc7)

lri $AR1,    #0x7674
lri $IX1,    #0xf99c
lri $WR1,    #0x5778
cw 0xd
call send_back  ; 8136 (0x1fc8)

lri $AR1,    #0x82a1
lri $IX1,    #0xf556
lri $WR1,    #0x7485
cw 0xd
call send_back  ; 8137 (0x1fc9)

lri $AR1,    #0x30bf
lri $IX1,    #0x4c30
lri $WR1,    #0x80a7
cw 0xd
call send_back  ; 8138 (0x1fca)

lri $AR1,    #0xc5af
lri $IX1,    #0x4ad8
lri $WR1,    #0x418c
cw 0xd
call send_back  ; 8139 (0x1fcb)

lri $AR1,    #0x3ea9
lri $IX1,    #0x7e5c
lri $WR1,    #0x6dea
cw 0xd
call send_back  ; 8140 (0x1fcc)

lri $AR1,    #0x4636
lri $IX1,    #0x9124
lri $WR1,    #0x4f0f
cw 0xd
call send_back  ; 8141 (0x1fcd)

lri $AR1,    #0x9d25
lri $IX1,    #0xa87a
lri $WR1,    #0x0cf3
cw 0xd
call send_back  ; 8142 (0x1fce)

lri $AR1,    #0x8f73
lri $IX1,    #0x38bc
lri $WR1,    #0x61e1
cw 0xd
call send_back  ; 8143 (0x1fcf)

lri $AR1,    #0x444e
lri $IX1,    #0x3a50
lri $WR1,    #0x9848
cw 0xd
call send_back  ; 8144 (0x1fd0)

lri $AR1,    #0x4423
lri $IX1,    #0x1074
lri $WR1,    #0x7ec6
cw 0xd
call send_back  ; 8145 (0x1fd1)

lri $AR1,    #0xceef
lri $IX1,    #0x2ecc
lri $WR1,    #0x4bed
cw 0xd
call send_back  ; 8146 (0x1fd2)

lri $AR1,    #0x70bf
lri $IX1,    #0x7a06
lri $WR1,    #0x9ce9
cw 0xd
call send_back  ; 8147 (0x1fd3)

lri $AR1,    #0x8989
lri $IX1,    #0x6352
lri $WR1,    #0xaf89
cw 0xd
call send_back  ; 8148 (0x1fd4)

lri $AR1,    #0x1953
lri $IX1,    #0xb612
lri $WR1,    #0x91bd
cw 0xd
call send_back  ; 8149 (0x1fd5)

lri $AR1,    #0x70df
lri $IX1,    #0xda7e
lri $WR1,    #0x1e16
cw 0xd
call send_back  ; 8150 (0x1fd6)

lri $AR1,    #0x4ab9
lri $IX1,    #0xcfa4
lri $WR1,    #0x9e66
cw 0xd
call send_back  ; 8151 (0x1fd7)

lri $AR1,    #0xa7f8
lri $IX1,    #0x3272
lri $WR1,    #0xb2fe
cw 0xd
call send_back  ; 8152 (0x1fd8)

lri $AR1,    #0x776b
lri $IX1,    #0x2f44
lri $WR1,    #0x86a3
cw 0xd
call send_back  ; 8153 (0x1fd9)

lri $AR1,    #0xedae
lri $IX1,    #0x169a
lri $WR1,    #0xc4cc
cw 0xd
call send_back  ; 8154 (0x1fda)

lri $AR1,    #0x67c3
lri $IX1,    #0x5d76
lri $WR1,    #0x9932
cw 0xd
call send_back  ; 8155 (0x1fdb)

lri $AR1,    #0x19b0
lri $IX1,    #0xf4f8
lri $WR1,    #0x954d
cw 0xd
call send_back  ; 8156 (0x1fdc)

lri $AR1,    #0x85c8
lri $IX1,    #0xfcc8
lri $WR1,    #0x91bc
cw 0xd
call send_back  ; 8157 (0x1fdd)

lri $AR1,    #0x290e
lri $IX1,    #0xbee6
lri $WR1,    #0x5f40
cw 0xd
call send_back  ; 8158 (0x1fde)

lri $AR1,    #0xcc74
lri $IX1,    #0x8356
lri $WR1,    #0xbc3d
cw 0xd
call send_back  ; 8159 (0x1fdf)

lri $AR1,    #0xe241
lri $IX1,    #0xfd64
lri $WR1,    #0x6975
cw 0xd
call send_back  ; 8160 (0x1fe0)

lri $AR1,    #0x227d
lri $IX1,    #0xbbd6
lri $WR1,    #0xc1e7
cw 0xd
call send_back  ; 8161 (0x1fe1)

lri $AR1,    #0x98ac
lri $IX1,    #0x00de
lri $WR1,    #0x477e
cw 0xd
call send_back  ; 8162 (0x1fe2)

lri $AR1,    #0x689d
lri $IX1,    #0x9618
lri $WR1,    #0x8791
cw 0xd
call send_back  ; 8163 (0x1fe3)

lri $AR1,    #0x97b0
lri $IX1,    #0x746e
lri $WR1,    #0x6fce
cw 0xd
call send_back  ; 8164 (0x1fe4)

lri $AR1,    #0x8358
lri $IX1,    #0x4f1a
lri $WR1,    #0x8598
cw 0xd
call send_back  ; 8165 (0x1fe5)

lri $AR1,    #0x3d28
lri $IX1,    #0x1cb4
lri $WR1,    #0x4f69
cw 0xd
call send_back  ; 8166 (0x1fe6)

lri $AR1,    #0xa845
lri $IX1,    #0x7886
lri $WR1,    #0x814e
cw 0xd
call send_back  ; 8167 (0x1fe7)

lri $AR1,    #0xcb7b
lri $IX1,    #0x0a08
lri $WR1,    #0x8307
cw 0xd
call send_back  ; 8168 (0x1fe8)

lri $AR1,    #0x36da
lri $IX1,    #0xe7bc
lri $WR1,    #0x8fdc
cw 0xd
call send_back  ; 8169 (0x1fe9)

lri $AR1,    #0x7b1d
lri $IX1,    #0x0656
lri $WR1,    #0x5dbd
cw 0xd
call send_back  ; 8170 (0x1fea)

lri $AR1,    #0x64af
lri $IX1,    #0x1460
lri $WR1,    #0xcaaf
cw 0xd
call send_back  ; 8171 (0x1feb)

lri $AR1,    #0x539a
lri $IX1,    #0x8658
lri $WR1,    #0x6527
cw 0xd
call send_back  ; 8172 (0x1fec)

lri $AR1,    #0x8543
lri $IX1,    #0xee5c
lri $WR1,    #0x9d59
cw 0xd
call send_back  ; 8173 (0x1fed)

lri $AR1,    #0x541e
lri $IX1,    #0xe668
lri $WR1,    #0x6b0e
cw 0xd
call send_back  ; 8174 (0x1fee)

lri $AR1,    #0xb550
lri $IX1,    #0xb364
lri $WR1,    #0x9504
cw 0xd
call send_back  ; 8175 (0x1fef)

lri $AR1,    #0x737b
lri $IX1,    #0x3ac0
lri $WR1,    #0x6c8e
cw 0xd
call send_back  ; 8176 (0x1ff0)

lri $AR1,    #0x3185
lri $IX1,    #0xcc0c
lri $WR1,    #0x194e
cw 0xd
call send_back  ; 8177 (0x1ff1)

lri $AR1,    #0x7fb3
lri $IX1,    #0x7b46
lri $WR1,    #0x5ec4
cw 0xd
call send_back  ; 8178 (0x1ff2)

lri $AR1,    #0xa0da
lri $IX1,    #0x3840
lri $WR1,    #0x76b7
cw 0xd
call send_back  ; 8179 (0x1ff3)

lri $AR1,    #0x6502
lri $IX1,    #0x52d6
lri $WR1,    #0x90f2
cw 0xd
call send_back  ; 8180 (0x1ff4)

lri $AR1,    #0x9a4d
lri $IX1,    #0x935c
lri $WR1,    #0xa28c
cw 0xd
call send_back  ; 8181 (0x1ff5)

lri $AR1,    #0x6460
lri $IX1,    #0x5a06
lri $WR1,    #0x4c26
cw 0xd
call send_back  ; 8182 (0x1ff6)

lri $AR1,    #0xae34
lri $IX1,    #0x37a2
lri $WR1,    #0xa049
cw 0xd
call send_back  ; 8183 (0x1ff7)

lri $AR1,    #0x418f
lri $IX1,    #0x056c
lri $WR1,    #0x5863
cw 0xd
call send_back  ; 8184 (0x1ff8)

lri $AR1,    #0x3aff
lri $IX1,    #0x8952
lri $WR1,    #0x7083
cw 0xd
call send_back  ; 8185 (0x1ff9)

lri $AR1,    #0x709f
lri $IX1,    #0x0f72
lri $WR1,    #0x0f4c
cw 0xd
call send_back  ; 8186 (0x1ffa)

lri $AR1,    #0xd580
lri $IX1,    #0xf12a
lri $WR1,    #0x7152
cw 0xd
call send_back  ; 8187 (0x1ffb)

lri $AR1,    #0x4af9
lri $IX1,    #0xa58c
lri $WR1,    #0xa449
cw 0xd
call send_back  ; 8188 (0x1ffc)

lri $AR1,    #0x8cb8
lri $IX1,    #0x8e6e
lri $WR1,    #0x9837
cw 0xd
call send_back  ; 8189 (0x1ffd)

lri $AR1,    #0x53e3
lri $IX1,    #0x210e
lri $WR1,    #0xca2d
cw 0xd
call send_back  ; 8190 (0x1ffe)

lri $AR1,    #0x5116
lri $IX1,    #0x2872
lri $WR1,    #0x6d86
cw 0xd
call send_back  ; 8191 (0x1fff)

lri $AR1,    #0x948c
lri $IX1,    #0x9372
lri $WR1,    #0x5e61
cw 0xd
call send_back  ; 8192 (0x2000)

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