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

lri $AR1,    #0x2399
lri $IX1,    #0xff16
lri $WR1,    #0xdd77
cw 0xd
call send_back  ; 49917 (0xc2fd)

lri $AR1,    #0x4f80
lri $IX1,    #0x9794
lri $WR1,    #0xc515
cw 0xd
call send_back  ; 49918 (0xc2fe)

lri $AR1,    #0x9f6b
lri $IX1,    #0x00a8
lri $WR1,    #0xa89d
cw 0xd
call send_back  ; 49919 (0xc2ff)

lri $AR1,    #0x4d5b
lri $IX1,    #0xf132
lri $WR1,    #0x5c18
cw 0xd
call send_back  ; 49920 (0xc300)

lri $AR1,    #0xbcde
lri $IX1,    #0xcd94
lri $WR1,    #0xa7b3
cw 0xd
call send_back  ; 49921 (0xc301)

lri $AR1,    #0x0981
lri $IX1,    #0x8660
lri $WR1,    #0x4031
cw 0xd
call send_back  ; 49922 (0xc302)

lri $AR1,    #0x6e64
lri $IX1,    #0xa522
lri $WR1,    #0x8127
cw 0xd
call send_back  ; 49923 (0xc303)

lri $AR1,    #0x8446
lri $IX1,    #0x8ef4
lri $WR1,    #0x71ac
cw 0xd
call send_back  ; 49924 (0xc304)

lri $AR1,    #0xaeba
lri $IX1,    #0xbc4a
lri $WR1,    #0x7571
cw 0xd
call send_back  ; 49925 (0xc305)

lri $AR1,    #0xa101
lri $IX1,    #0x30be
lri $WR1,    #0x69e5
cw 0xd
call send_back  ; 49926 (0xc306)

lri $AR1,    #0x8630
lri $IX1,    #0xbd2a
lri $WR1,    #0xb076
cw 0xd
call send_back  ; 49927 (0xc307)

lri $AR1,    #0x700f
lri $IX1,    #0x69d6
lri $WR1,    #0xac6a
cw 0xd
call send_back  ; 49928 (0xc308)

lri $AR1,    #0x9b71
lri $IX1,    #0xae20
lri $WR1,    #0x647a
cw 0xd
call send_back  ; 49929 (0xc309)

lri $AR1,    #0xb85c
lri $IX1,    #0xb65a
lri $WR1,    #0xa5ab
cw 0xd
call send_back  ; 49930 (0xc30a)

lri $AR1,    #0x97cd
lri $IX1,    #0xc842
lri $WR1,    #0x9681
cw 0xd
call send_back  ; 49931 (0xc30b)

lri $AR1,    #0x486d
lri $IX1,    #0xb9c2
lri $WR1,    #0x7f1a
cw 0xd
call send_back  ; 49932 (0xc30c)

lri $AR1,    #0xa700
lri $IX1,    #0x4574
lri $WR1,    #0x8437
cw 0xd
call send_back  ; 49933 (0xc30d)

lri $AR1,    #0x96e5
lri $IX1,    #0xb398
lri $WR1,    #0x90d7
cw 0xd
call send_back  ; 49934 (0xc30e)

lri $AR1,    #0x5a76
lri $IX1,    #0xade4
lri $WR1,    #0x8b5b
cw 0xd
call send_back  ; 49935 (0xc30f)

lri $AR1,    #0x3a8f
lri $IX1,    #0x07d6
lri $WR1,    #0x98d9
cw 0xd
call send_back  ; 49936 (0xc310)

lri $AR1,    #0x381a
lri $IX1,    #0xad1a
lri $WR1,    #0x7aa5
cw 0xd
call send_back  ; 49937 (0xc311)

lri $AR1,    #0xc1e5
lri $IX1,    #0xa296
lri $WR1,    #0x5f94
cw 0xd
call send_back  ; 49938 (0xc312)

lri $AR1,    #0xbc99
lri $IX1,    #0xf680
lri $WR1,    #0x342d
cw 0xd
call send_back  ; 49939 (0xc313)

lri $AR1,    #0x721a
lri $IX1,    #0x7f6c
lri $WR1,    #0x7221
cw 0xd
call send_back  ; 49940 (0xc314)

lri $AR1,    #0x992c
lri $IX1,    #0x4164
lri $WR1,    #0x8956
cw 0xd
call send_back  ; 49941 (0xc315)

lri $AR1,    #0x759f
lri $IX1,    #0x1c24
lri $WR1,    #0x99e6
cw 0xd
call send_back  ; 49942 (0xc316)

lri $AR1,    #0x74df
lri $IX1,    #0xe484
lri $WR1,    #0xb837
cw 0xd
call send_back  ; 49943 (0xc317)

lri $AR1,    #0x822d
lri $IX1,    #0x1f12
lri $WR1,    #0xb9c0
cw 0xd
call send_back  ; 49944 (0xc318)

lri $AR1,    #0x795a
lri $IX1,    #0x1916
lri $WR1,    #0x727b
cw 0xd
call send_back  ; 49945 (0xc319)

lri $AR1,    #0x7e4c
lri $IX1,    #0xf8d2
lri $WR1,    #0x38a7
cw 0xd
call send_back  ; 49946 (0xc31a)

lri $AR1,    #0x7327
lri $IX1,    #0x6d50
lri $WR1,    #0xd5d4
cw 0xd
call send_back  ; 49947 (0xc31b)

lri $AR1,    #0xae5d
lri $IX1,    #0xc994
lri $WR1,    #0xa1dc
cw 0xd
call send_back  ; 49948 (0xc31c)

lri $AR1,    #0x4d80
lri $IX1,    #0x6e70
lri $WR1,    #0xbdd8
cw 0xd
call send_back  ; 49949 (0xc31d)

lri $AR1,    #0x7120
lri $IX1,    #0x51e4
lri $WR1,    #0xa28b
cw 0xd
call send_back  ; 49950 (0xc31e)

lri $AR1,    #0x318c
lri $IX1,    #0x1240
lri $WR1,    #0x5773
cw 0xd
call send_back  ; 49951 (0xc31f)

lri $AR1,    #0x93ba
lri $IX1,    #0x36f0
lri $WR1,    #0x0cf6
cw 0xd
call send_back  ; 49952 (0xc320)

lri $AR1,    #0x9132
lri $IX1,    #0xe826
lri $WR1,    #0xddc9
cw 0xd
call send_back  ; 49953 (0xc321)

lri $AR1,    #0x4543
lri $IX1,    #0x6254
lri $WR1,    #0x891d
cw 0xd
call send_back  ; 49954 (0xc322)

lri $AR1,    #0x655c
lri $IX1,    #0x99a4
lri $WR1,    #0x68a0
cw 0xd
call send_back  ; 49955 (0xc323)

lri $AR1,    #0x31ca
lri $IX1,    #0xc55e
lri $WR1,    #0x9ae5
cw 0xd
call send_back  ; 49956 (0xc324)

lri $AR1,    #0x67be
lri $IX1,    #0xc266
lri $WR1,    #0x3445
cw 0xd
call send_back  ; 49957 (0xc325)

lri $AR1,    #0x4cda
lri $IX1,    #0x47d8
lri $WR1,    #0xa5c1
cw 0xd
call send_back  ; 49958 (0xc326)

lri $AR1,    #0x9020
lri $IX1,    #0xa7c8
lri $WR1,    #0xcafa
cw 0xd
call send_back  ; 49959 (0xc327)

lri $AR1,    #0x538a
lri $IX1,    #0x2a4e
lri $WR1,    #0x15d7
cw 0xd
call send_back  ; 49960 (0xc328)

lri $AR1,    #0x9d26
lri $IX1,    #0xd7da
lri $WR1,    #0x77d9
cw 0xd
call send_back  ; 49961 (0xc329)

lri $AR1,    #0x8dfe
lri $IX1,    #0xa3da
lri $WR1,    #0x56b1
cw 0xd
call send_back  ; 49962 (0xc32a)

lri $AR1,    #0x7099
lri $IX1,    #0x37ee
lri $WR1,    #0x6b3b
cw 0xd
call send_back  ; 49963 (0xc32b)

lri $AR1,    #0x5871
lri $IX1,    #0x036a
lri $WR1,    #0xbf55
cw 0xd
call send_back  ; 49964 (0xc32c)

lri $AR1,    #0x8728
lri $IX1,    #0x8a9c
lri $WR1,    #0x78a8
cw 0xd
call send_back  ; 49965 (0xc32d)

lri $AR1,    #0x7bc0
lri $IX1,    #0x1c82
lri $WR1,    #0x1c00
cw 0xd
call send_back  ; 49966 (0xc32e)

lri $AR1,    #0xd3bd
lri $IX1,    #0xf54e
lri $WR1,    #0x5636
cw 0xd
call send_back  ; 49967 (0xc32f)

lri $AR1,    #0x5d6e
lri $IX1,    #0x4790
lri $WR1,    #0x7d3e
cw 0xd
call send_back  ; 49968 (0xc330)

lri $AR1,    #0x4638
lri $IX1,    #0x8d44
lri $WR1,    #0x4573
cw 0xd
call send_back  ; 49969 (0xc331)

lri $AR1,    #0x8f2c
lri $IX1,    #0xbdaa
lri $WR1,    #0x749b
cw 0xd
call send_back  ; 49970 (0xc332)

lri $AR1,    #0x45bf
lri $IX1,    #0x741e
lri $WR1,    #0x8dd1
cw 0xd
call send_back  ; 49971 (0xc333)

lri $AR1,    #0x45e6
lri $IX1,    #0x97da
lri $WR1,    #0xe6c9
cw 0xd
call send_back  ; 49972 (0xc334)

lri $AR1,    #0x6681
lri $IX1,    #0x8be2
lri $WR1,    #0xb08c
cw 0xd
call send_back  ; 49973 (0xc335)

lri $AR1,    #0x4044
lri $IX1,    #0x39e6
lri $WR1,    #0x9b44
cw 0xd
call send_back  ; 49974 (0xc336)

lri $AR1,    #0xa304
lri $IX1,    #0x4a86
lri $WR1,    #0xbe10
cw 0xd
call send_back  ; 49975 (0xc337)

lri $AR1,    #0xa4b7
lri $IX1,    #0x7098
lri $WR1,    #0xb183
cw 0xd
call send_back  ; 49976 (0xc338)

lri $AR1,    #0x60e8
lri $IX1,    #0xb4f8
lri $WR1,    #0x34e2
cw 0xd
call send_back  ; 49977 (0xc339)

lri $AR1,    #0x5f01
lri $IX1,    #0x0b84
lri $WR1,    #0xa397
cw 0xd
call send_back  ; 49978 (0xc33a)

lri $AR1,    #0x8930
lri $IX1,    #0x09a8
lri $WR1,    #0xd20a
cw 0xd
call send_back  ; 49979 (0xc33b)

lri $AR1,    #0x8539
lri $IX1,    #0x3a52
lri $WR1,    #0x7e57
cw 0xd
call send_back  ; 49980 (0xc33c)

lri $AR1,    #0x7c0a
lri $IX1,    #0x2288
lri $WR1,    #0x3af9
cw 0xd
call send_back  ; 49981 (0xc33d)

lri $AR1,    #0xcc57
lri $IX1,    #0x7586
lri $WR1,    #0x7706
cw 0xd
call send_back  ; 49982 (0xc33e)

lri $AR1,    #0xa819
lri $IX1,    #0x16a0
lri $WR1,    #0x68f2
cw 0xd
call send_back  ; 49983 (0xc33f)

lri $AR1,    #0x1439
lri $IX1,    #0x3ac8
lri $WR1,    #0x8681
cw 0xd
call send_back  ; 49984 (0xc340)

lri $AR1,    #0x8d3a
lri $IX1,    #0x2308
lri $WR1,    #0xbdf1
cw 0xd
call send_back  ; 49985 (0xc341)

lri $AR1,    #0x932e
lri $IX1,    #0x64aa
lri $WR1,    #0xb1df
cw 0xd
call send_back  ; 49986 (0xc342)

lri $AR1,    #0x72cf
lri $IX1,    #0x637e
lri $WR1,    #0xab11
cw 0xd
call send_back  ; 49987 (0xc343)

lri $AR1,    #0xa8fd
lri $IX1,    #0x65f2
lri $WR1,    #0x289b
cw 0xd
call send_back  ; 49988 (0xc344)

lri $AR1,    #0x9985
lri $IX1,    #0x6264
lri $WR1,    #0x507c
cw 0xd
call send_back  ; 49989 (0xc345)

lri $AR1,    #0x616c
lri $IX1,    #0x3064
lri $WR1,    #0x6041
cw 0xd
call send_back  ; 49990 (0xc346)

lri $AR1,    #0xb09c
lri $IX1,    #0x084e
lri $WR1,    #0x7ec8
cw 0xd
call send_back  ; 49991 (0xc347)

lri $AR1,    #0xae44
lri $IX1,    #0x0f02
lri $WR1,    #0x5592
cw 0xd
call send_back  ; 49992 (0xc348)

lri $AR1,    #0xd6b0
lri $IX1,    #0xf304
lri $WR1,    #0x81e8
cw 0xd
call send_back  ; 49993 (0xc349)

lri $AR1,    #0x60e6
lri $IX1,    #0x3bde
lri $WR1,    #0x9b2b
cw 0xd
call send_back  ; 49994 (0xc34a)

lri $AR1,    #0xedfe
lri $IX1,    #0xbc10
lri $WR1,    #0x9d90
cw 0xd
call send_back  ; 49995 (0xc34b)

lri $AR1,    #0xeb45
lri $IX1,    #0x795e
lri $WR1,    #0xddaf
cw 0xd
call send_back  ; 49996 (0xc34c)

lri $AR1,    #0x8c35
lri $IX1,    #0x36c4
lri $WR1,    #0xa31b
cw 0xd
call send_back  ; 49997 (0xc34d)

lri $AR1,    #0x7073
lri $IX1,    #0x7700
lri $WR1,    #0x856f
cw 0xd
call send_back  ; 49998 (0xc34e)

lri $AR1,    #0x4db0
lri $IX1,    #0x2dc2
lri $WR1,    #0x88f9
cw 0xd
call send_back  ; 49999 (0xc34f)

lri $AR1,    #0xacac
lri $IX1,    #0x49a6
lri $WR1,    #0x9d90
cw 0xd
call send_back  ; 50000 (0xc350)

lri $AR1,    #0x5449
lri $IX1,    #0xa7fe
lri $WR1,    #0x6b92
cw 0xd
call send_back  ; 50001 (0xc351)

lri $AR1,    #0x3cdb
lri $IX1,    #0xbf62
lri $WR1,    #0x28b7
cw 0xd
call send_back  ; 50002 (0xc352)

lri $AR1,    #0xb9a0
lri $IX1,    #0x3d52
lri $WR1,    #0x5faf
cw 0xd
call send_back  ; 50003 (0xc353)

lri $AR1,    #0xcda1
lri $IX1,    #0xd6b6
lri $WR1,    #0x8b2e
cw 0xd
call send_back  ; 50004 (0xc354)

lri $AR1,    #0xbcda
lri $IX1,    #0x827e
lri $WR1,    #0x7e63
cw 0xd
call send_back  ; 50005 (0xc355)

lri $AR1,    #0xb9e1
lri $IX1,    #0x215c
lri $WR1,    #0x3288
cw 0xd
call send_back  ; 50006 (0xc356)

lri $AR1,    #0x73f6
lri $IX1,    #0x14ae
lri $WR1,    #0x9272
cw 0xd
call send_back  ; 50007 (0xc357)

lri $AR1,    #0xa0c2
lri $IX1,    #0x5a9a
lri $WR1,    #0xa2d5
cw 0xd
call send_back  ; 50008 (0xc358)

lri $AR1,    #0xc88b
lri $IX1,    #0x4c8a
lri $WR1,    #0xcf3a
cw 0xd
call send_back  ; 50009 (0xc359)

lri $AR1,    #0x7b3e
lri $IX1,    #0xf8f8
lri $WR1,    #0x113d
cw 0xd
call send_back  ; 50010 (0xc35a)

lri $AR1,    #0x8813
lri $IX1,    #0x20b6
lri $WR1,    #0x791b
cw 0xd
call send_back  ; 50011 (0xc35b)

lri $AR1,    #0xb925
lri $IX1,    #0x039c
lri $WR1,    #0x342f
cw 0xd
call send_back  ; 50012 (0xc35c)

lri $AR1,    #0x4fb8
lri $IX1,    #0x3fe2
lri $WR1,    #0x675d
cw 0xd
call send_back  ; 50013 (0xc35d)

lri $AR1,    #0x6da5
lri $IX1,    #0xf2fc
lri $WR1,    #0x7108
cw 0xd
call send_back  ; 50014 (0xc35e)

lri $AR1,    #0x9b91
lri $IX1,    #0xea46
lri $WR1,    #0xc79b
cw 0xd
call send_back  ; 50015 (0xc35f)

lri $AR1,    #0x9358
lri $IX1,    #0xe53c
lri $WR1,    #0x8f3a
cw 0xd
call send_back  ; 50016 (0xc360)

lri $AR1,    #0x4175
lri $IX1,    #0x92ba
lri $WR1,    #0x8aa9
cw 0xd
call send_back  ; 50017 (0xc361)

lri $AR1,    #0x6fc1
lri $IX1,    #0xede4
lri $WR1,    #0x18f6
cw 0xd
call send_back  ; 50018 (0xc362)

lri $AR1,    #0x9f3e
lri $IX1,    #0xcf2e
lri $WR1,    #0xe2fc
cw 0xd
call send_back  ; 50019 (0xc363)

lri $AR1,    #0x1e60
lri $IX1,    #0xc932
lri $WR1,    #0x914f
cw 0xd
call send_back  ; 50020 (0xc364)

lri $AR1,    #0xc490
lri $IX1,    #0xa0c0
lri $WR1,    #0xbc93
cw 0xd
call send_back  ; 50021 (0xc365)

lri $AR1,    #0x4b33
lri $IX1,    #0xbae2
lri $WR1,    #0x27e9
cw 0xd
call send_back  ; 50022 (0xc366)

lri $AR1,    #0x6022
lri $IX1,    #0x9b3a
lri $WR1,    #0x965f
cw 0xd
call send_back  ; 50023 (0xc367)

lri $AR1,    #0xa4bf
lri $IX1,    #0xe070
lri $WR1,    #0x921b
cw 0xd
call send_back  ; 50024 (0xc368)

lri $AR1,    #0xb88b
lri $IX1,    #0xf41c
lri $WR1,    #0xa529
cw 0xd
call send_back  ; 50025 (0xc369)

lri $AR1,    #0x8d97
lri $IX1,    #0xbee4
lri $WR1,    #0x319c
cw 0xd
call send_back  ; 50026 (0xc36a)

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