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

lri $AR1,    #0x4167
lri $IX1,    #0x87e6
lri $WR1,    #0x9bfe
cw 0xd
call send_back  ; 38995 (0x9853)

lri $AR1,    #0xab78
lri $IX1,    #0xca8e
lri $WR1,    #0x426b
cw 0xd
call send_back  ; 38996 (0x9854)

lri $AR1,    #0x9c0d
lri $IX1,    #0xf752
lri $WR1,    #0x5b70
cw 0xd
call send_back  ; 38997 (0x9855)

lri $AR1,    #0x40b5
lri $IX1,    #0x7198
lri $WR1,    #0x881d
cw 0xd
call send_back  ; 38998 (0x9856)

lri $AR1,    #0x34e7
lri $IX1,    #0x18b6
lri $WR1,    #0x6961
cw 0xd
call send_back  ; 38999 (0x9857)

lri $AR1,    #0x99c6
lri $IX1,    #0xe20c
lri $WR1,    #0xce46
cw 0xd
call send_back  ; 39000 (0x9858)

lri $AR1,    #0xc04f
lri $IX1,    #0x657c
lri $WR1,    #0x96ef
cw 0xd
call send_back  ; 39001 (0x9859)

lri $AR1,    #0x8c67
lri $IX1,    #0xd536
lri $WR1,    #0x81cd
cw 0xd
call send_back  ; 39002 (0x985a)

lri $AR1,    #0xaa7f
lri $IX1,    #0xe904
lri $WR1,    #0x6a39
cw 0xd
call send_back  ; 39003 (0x985b)

lri $AR1,    #0x1927
lri $IX1,    #0x68f8
lri $WR1,    #0x94e4
cw 0xd
call send_back  ; 39004 (0x985c)

lri $AR1,    #0x435e
lri $IX1,    #0x1ac0
lri $WR1,    #0x6049
cw 0xd
call send_back  ; 39005 (0x985d)

lri $AR1,    #0x57f4
lri $IX1,    #0xc08c
lri $WR1,    #0x6ca4
cw 0xd
call send_back  ; 39006 (0x985e)

lri $AR1,    #0x8dc6
lri $IX1,    #0x77aa
lri $WR1,    #0x7079
cw 0xd
call send_back  ; 39007 (0x985f)

lri $AR1,    #0x7c27
lri $IX1,    #0xf8d2
lri $WR1,    #0xd442
cw 0xd
call send_back  ; 39008 (0x9860)

lri $AR1,    #0x7a4d
lri $IX1,    #0xe356
lri $WR1,    #0xb95c
cw 0xd
call send_back  ; 39009 (0x9861)

lri $AR1,    #0x7806
lri $IX1,    #0x3814
lri $WR1,    #0x9dad
cw 0xd
call send_back  ; 39010 (0x9862)

lri $AR1,    #0xd58c
lri $IX1,    #0x5878
lri $WR1,    #0x3f2a
cw 0xd
call send_back  ; 39011 (0x9863)

lri $AR1,    #0xc7ce
lri $IX1,    #0x2152
lri $WR1,    #0x97ba
cw 0xd
call send_back  ; 39012 (0x9864)

lri $AR1,    #0x31e8
lri $IX1,    #0xf0ea
lri $WR1,    #0x239e
cw 0xd
call send_back  ; 39013 (0x9865)

lri $AR1,    #0x6c3d
lri $IX1,    #0x7304
lri $WR1,    #0x81cc
cw 0xd
call send_back  ; 39014 (0x9866)

lri $AR1,    #0x94db
lri $IX1,    #0xcd38
lri $WR1,    #0x3f6b
cw 0xd
call send_back  ; 39015 (0x9867)

lri $AR1,    #0x9c99
lri $IX1,    #0x1968
lri $WR1,    #0x24fa
cw 0xd
call send_back  ; 39016 (0x9868)

lri $AR1,    #0xafb6
lri $IX1,    #0xe3a4
lri $WR1,    #0x851b
cw 0xd
call send_back  ; 39017 (0x9869)

lri $AR1,    #0xb836
lri $IX1,    #0x7c48
lri $WR1,    #0xbabb
cw 0xd
call send_back  ; 39018 (0x986a)

lri $AR1,    #0x6bf1
lri $IX1,    #0x3eae
lri $WR1,    #0x9579
cw 0xd
call send_back  ; 39019 (0x986b)

lri $AR1,    #0x7f80
lri $IX1,    #0x503e
lri $WR1,    #0x4909
cw 0xd
call send_back  ; 39020 (0x986c)

lri $AR1,    #0x92f0
lri $IX1,    #0xb322
lri $WR1,    #0x6d7a
cw 0xd
call send_back  ; 39021 (0x986d)

lri $AR1,    #0x9c83
lri $IX1,    #0xb384
lri $WR1,    #0x9c0e
cw 0xd
call send_back  ; 39022 (0x986e)

lri $AR1,    #0x5949
lri $IX1,    #0x9596
lri $WR1,    #0x95a3
cw 0xd
call send_back  ; 39023 (0x986f)

lri $AR1,    #0x82f0
lri $IX1,    #0xde34
lri $WR1,    #0x8546
cw 0xd
call send_back  ; 39024 (0x9870)

lri $AR1,    #0x158c
lri $IX1,    #0x777a
lri $WR1,    #0xbaf5
cw 0xd
call send_back  ; 39025 (0x9871)

lri $AR1,    #0x2fab
lri $IX1,    #0x2e14
lri $WR1,    #0x882f
cw 0xd
call send_back  ; 39026 (0x9872)

lri $AR1,    #0x6a90
lri $IX1,    #0x739e
lri $WR1,    #0x9952
cw 0xd
call send_back  ; 39027 (0x9873)

lri $AR1,    #0x4fcf
lri $IX1,    #0xd5e0
lri $WR1,    #0x9c69
cw 0xd
call send_back  ; 39028 (0x9874)

lri $AR1,    #0xad36
lri $IX1,    #0x123a
lri $WR1,    #0x9f64
cw 0xd
call send_back  ; 39029 (0x9875)

lri $AR1,    #0x5734
lri $IX1,    #0xf80e
lri $WR1,    #0xad63
cw 0xd
call send_back  ; 39030 (0x9876)

lri $AR1,    #0x4db0
lri $IX1,    #0x4c74
lri $WR1,    #0xb408
cw 0xd
call send_back  ; 39031 (0x9877)

lri $AR1,    #0x8e7c
lri $IX1,    #0x7514
lri $WR1,    #0x7f81
cw 0xd
call send_back  ; 39032 (0x9878)

lri $AR1,    #0x0c51
lri $IX1,    #0xb768
lri $WR1,    #0x8534
cw 0xd
call send_back  ; 39033 (0x9879)

lri $AR1,    #0xa097
lri $IX1,    #0x353a
lri $WR1,    #0xa2c5
cw 0xd
call send_back  ; 39034 (0x987a)

lri $AR1,    #0x41ca
lri $IX1,    #0x5eb8
lri $WR1,    #0xc85f
cw 0xd
call send_back  ; 39035 (0x987b)

lri $AR1,    #0xafcd
lri $IX1,    #0x35d8
lri $WR1,    #0x1af5
cw 0xd
call send_back  ; 39036 (0x987c)

lri $AR1,    #0x82fb
lri $IX1,    #0x5684
lri $WR1,    #0xd46a
cw 0xd
call send_back  ; 39037 (0x987d)

lri $AR1,    #0xfa46
lri $IX1,    #0x2222
lri $WR1,    #0x6547
cw 0xd
call send_back  ; 39038 (0x987e)

lri $AR1,    #0xe836
lri $IX1,    #0x8d04
lri $WR1,    #0x7d08
cw 0xd
call send_back  ; 39039 (0x987f)

lri $AR1,    #0x9611
lri $IX1,    #0xbf6c
lri $WR1,    #0x8385
cw 0xd
call send_back  ; 39040 (0x9880)

lri $AR1,    #0xc007
lri $IX1,    #0xe382
lri $WR1,    #0x97a2
cw 0xd
call send_back  ; 39041 (0x9881)

lri $AR1,    #0x4cab
lri $IX1,    #0xf4fe
lri $WR1,    #0xb4b6
cw 0xd
call send_back  ; 39042 (0x9882)

lri $AR1,    #0x7582
lri $IX1,    #0x16ec
lri $WR1,    #0x91ca
cw 0xd
call send_back  ; 39043 (0x9883)

lri $AR1,    #0x9e0c
lri $IX1,    #0xb74a
lri $WR1,    #0x8348
cw 0xd
call send_back  ; 39044 (0x9884)

lri $AR1,    #0x7203
lri $IX1,    #0x7fd2
lri $WR1,    #0x8114
cw 0xd
call send_back  ; 39045 (0x9885)

lri $AR1,    #0x732a
lri $IX1,    #0x9ec2
lri $WR1,    #0x50b4
cw 0xd
call send_back  ; 39046 (0x9886)

lri $AR1,    #0xc279
lri $IX1,    #0x31f8
lri $WR1,    #0x1488
cw 0xd
call send_back  ; 39047 (0x9887)

lri $AR1,    #0x87ff
lri $IX1,    #0x721e
lri $WR1,    #0x86ac
cw 0xd
call send_back  ; 39048 (0x9888)

lri $AR1,    #0xc831
lri $IX1,    #0x8358
lri $WR1,    #0xcf8a
cw 0xd
call send_back  ; 39049 (0x9889)

lri $AR1,    #0x951a
lri $IX1,    #0x6c1e
lri $WR1,    #0x95bc
cw 0xd
call send_back  ; 39050 (0x988a)

lri $AR1,    #0xbd1a
lri $IX1,    #0x82ac
lri $WR1,    #0x763c
cw 0xd
call send_back  ; 39051 (0x988b)

lri $AR1,    #0xc09e
lri $IX1,    #0x84d6
lri $WR1,    #0x6979
cw 0xd
call send_back  ; 39052 (0x988c)

lri $AR1,    #0x538f
lri $IX1,    #0x6576
lri $WR1,    #0x936b
cw 0xd
call send_back  ; 39053 (0x988d)

lri $AR1,    #0xded0
lri $IX1,    #0x8674
lri $WR1,    #0x7a23
cw 0xd
call send_back  ; 39054 (0x988e)

lri $AR1,    #0x399d
lri $IX1,    #0x7584
lri $WR1,    #0x7ff6
cw 0xd
call send_back  ; 39055 (0x988f)

lri $AR1,    #0x8a19
lri $IX1,    #0x358c
lri $WR1,    #0x23cf
cw 0xd
call send_back  ; 39056 (0x9890)

lri $AR1,    #0xc7d0
lri $IX1,    #0x85fe
lri $WR1,    #0xd3b4
cw 0xd
call send_back  ; 39057 (0x9891)

lri $AR1,    #0x9a95
lri $IX1,    #0x54e0
lri $WR1,    #0x6b13
cw 0xd
call send_back  ; 39058 (0x9892)

lri $AR1,    #0x2373
lri $IX1,    #0x77ee
lri $WR1,    #0x27e0
cw 0xd
call send_back  ; 39059 (0x9893)

lri $AR1,    #0x8515
lri $IX1,    #0xcc9e
lri $WR1,    #0x5725
cw 0xd
call send_back  ; 39060 (0x9894)

lri $AR1,    #0x9c61
lri $IX1,    #0xd642
lri $WR1,    #0x92fb
cw 0xd
call send_back  ; 39061 (0x9895)

lri $AR1,    #0xa9ac
lri $IX1,    #0xbd36
lri $WR1,    #0x898e
cw 0xd
call send_back  ; 39062 (0x9896)

lri $AR1,    #0x8e45
lri $IX1,    #0x1158
lri $WR1,    #0xc63a
cw 0xd
call send_back  ; 39063 (0x9897)

lri $AR1,    #0x99b2
lri $IX1,    #0xc598
lri $WR1,    #0xbb49
cw 0xd
call send_back  ; 39064 (0x9898)

lri $AR1,    #0x8d67
lri $IX1,    #0x6206
lri $WR1,    #0xb46c
cw 0xd
call send_back  ; 39065 (0x9899)

lri $AR1,    #0x5d4e
lri $IX1,    #0x4502
lri $WR1,    #0x4771
cw 0xd
call send_back  ; 39066 (0x989a)

lri $AR1,    #0xa6f1
lri $IX1,    #0xdc20
lri $WR1,    #0xaa5f
cw 0xd
call send_back  ; 39067 (0x989b)

lri $AR1,    #0x4083
lri $IX1,    #0xe044
lri $WR1,    #0x6b64
cw 0xd
call send_back  ; 39068 (0x989c)

lri $AR1,    #0x7cbc
lri $IX1,    #0xb888
lri $WR1,    #0x40cc
cw 0xd
call send_back  ; 39069 (0x989d)

lri $AR1,    #0x2faf
lri $IX1,    #0x128a
lri $WR1,    #0xe470
cw 0xd
call send_back  ; 39070 (0x989e)

lri $AR1,    #0x8491
lri $IX1,    #0x5ea6
lri $WR1,    #0x8fbf
cw 0xd
call send_back  ; 39071 (0x989f)

lri $AR1,    #0xab99
lri $IX1,    #0x11a4
lri $WR1,    #0x92f5
cw 0xd
call send_back  ; 39072 (0x98a0)

lri $AR1,    #0xb2f6
lri $IX1,    #0x357e
lri $WR1,    #0x8b7a
cw 0xd
call send_back  ; 39073 (0x98a1)

lri $AR1,    #0xdcf9
lri $IX1,    #0xcdca
lri $WR1,    #0xcb15
cw 0xd
call send_back  ; 39074 (0x98a2)

lri $AR1,    #0xd974
lri $IX1,    #0xc436
lri $WR1,    #0x72e3
cw 0xd
call send_back  ; 39075 (0x98a3)

lri $AR1,    #0x4f7b
lri $IX1,    #0x54ec
lri $WR1,    #0x7ad2
cw 0xd
call send_back  ; 39076 (0x98a4)

lri $AR1,    #0x8060
lri $IX1,    #0x2a1a
lri $WR1,    #0xb76b
cw 0xd
call send_back  ; 39077 (0x98a5)

lri $AR1,    #0xdc4c
lri $IX1,    #0x6176
lri $WR1,    #0x4dc2
cw 0xd
call send_back  ; 39078 (0x98a6)

lri $AR1,    #0x8423
lri $IX1,    #0x7620
lri $WR1,    #0xc66f
cw 0xd
call send_back  ; 39079 (0x98a7)

lri $AR1,    #0x4c24
lri $IX1,    #0x5c90
lri $WR1,    #0x762c
cw 0xd
call send_back  ; 39080 (0x98a8)

lri $AR1,    #0xbe00
lri $IX1,    #0xe5fe
lri $WR1,    #0x9c2a
cw 0xd
call send_back  ; 39081 (0x98a9)

lri $AR1,    #0x38c6
lri $IX1,    #0x9bf8
lri $WR1,    #0xc3b4
cw 0xd
call send_back  ; 39082 (0x98aa)

lri $AR1,    #0x805e
lri $IX1,    #0x94a2
lri $WR1,    #0x8819
cw 0xd
call send_back  ; 39083 (0x98ab)

lri $AR1,    #0xb60c
lri $IX1,    #0x2338
lri $WR1,    #0x2f88
cw 0xd
call send_back  ; 39084 (0x98ac)

lri $AR1,    #0xae92
lri $IX1,    #0xa048
lri $WR1,    #0x8ade
cw 0xd
call send_back  ; 39085 (0x98ad)

lri $AR1,    #0xca75
lri $IX1,    #0xb076
lri $WR1,    #0x85fe
cw 0xd
call send_back  ; 39086 (0x98ae)

lri $AR1,    #0x381e
lri $IX1,    #0x4ff8
lri $WR1,    #0x35b3
cw 0xd
call send_back  ; 39087 (0x98af)

lri $AR1,    #0x3f22
lri $IX1,    #0x5cc2
lri $WR1,    #0x55c6
cw 0xd
call send_back  ; 39088 (0x98b0)

lri $AR1,    #0xbf88
lri $IX1,    #0x4092
lri $WR1,    #0x7345
cw 0xd
call send_back  ; 39089 (0x98b1)

lri $AR1,    #0xcf66
lri $IX1,    #0x97ce
lri $WR1,    #0xcc8b
cw 0xd
call send_back  ; 39090 (0x98b2)

lri $AR1,    #0x3493
lri $IX1,    #0x2156
lri $WR1,    #0xa227
cw 0xd
call send_back  ; 39091 (0x98b3)

lri $AR1,    #0xbfcb
lri $IX1,    #0xc746
lri $WR1,    #0xa91e
cw 0xd
call send_back  ; 39092 (0x98b4)

lri $AR1,    #0xaa10
lri $IX1,    #0x07e8
lri $WR1,    #0x68b3
cw 0xd
call send_back  ; 39093 (0x98b5)

lri $AR1,    #0xe49b
lri $IX1,    #0x5192
lri $WR1,    #0xeb1e
cw 0xd
call send_back  ; 39094 (0x98b6)

lri $AR1,    #0x2f24
lri $IX1,    #0xe3e2
lri $WR1,    #0xaa75
cw 0xd
call send_back  ; 39095 (0x98b7)

lri $AR1,    #0x1fe6
lri $IX1,    #0x5c18
lri $WR1,    #0x6820
cw 0xd
call send_back  ; 39096 (0x98b8)

lri $AR1,    #0x740f
lri $IX1,    #0x19d2
lri $WR1,    #0x8715
cw 0xd
call send_back  ; 39097 (0x98b9)

lri $AR1,    #0x5f0d
lri $IX1,    #0x050e
lri $WR1,    #0x6e54
cw 0xd
call send_back  ; 39098 (0x98ba)

lri $AR1,    #0x8273
lri $IX1,    #0xcdc2
lri $WR1,    #0x4ab8
cw 0xd
call send_back  ; 39099 (0x98bb)

lri $AR1,    #0x9fc9
lri $IX1,    #0x60be
lri $WR1,    #0x9cb1
cw 0xd
call send_back  ; 39100 (0x98bc)

lri $AR1,    #0xd120
lri $IX1,    #0xe54a
lri $WR1,    #0x37f1
cw 0xd
call send_back  ; 39101 (0x98bd)

lri $AR1,    #0x84b0
lri $IX1,    #0x0248
lri $WR1,    #0x989e
cw 0xd
call send_back  ; 39102 (0x98be)

lri $AR1,    #0x7b58
lri $IX1,    #0x490e
lri $WR1,    #0x9321
cw 0xd
call send_back  ; 39103 (0x98bf)

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