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

lri $AR1,    #0x55a4
lri $IX1,    #0x2de0
lri $WR1,    #0xcf6c
cw 0xd
call send_back  ; 985 (0x03d9)

lri $AR1,    #0x4440
lri $IX1,    #0x675e
lri $WR1,    #0xbe23
cw 0xd
call send_back  ; 986 (0x03da)

lri $AR1,    #0x4933
lri $IX1,    #0x8f02
lri $WR1,    #0x7f2e
cw 0xd
call send_back  ; 987 (0x03db)

lri $AR1,    #0x9fe1
lri $IX1,    #0x1852
lri $WR1,    #0x5ce0
cw 0xd
call send_back  ; 988 (0x03dc)

lri $AR1,    #0xcafe
lri $IX1,    #0x6654
lri $WR1,    #0x25bb
cw 0xd
call send_back  ; 989 (0x03dd)

lri $AR1,    #0x58ee
lri $IX1,    #0x9f66
lri $WR1,    #0x555d
cw 0xd
call send_back  ; 990 (0x03de)

lri $AR1,    #0x8d02
lri $IX1,    #0x98f0
lri $WR1,    #0xc20e
cw 0xd
call send_back  ; 991 (0x03df)

lri $AR1,    #0xd4df
lri $IX1,    #0x9c9c
lri $WR1,    #0xa96e
cw 0xd
call send_back  ; 992 (0x03e0)

lri $AR1,    #0x3cf2
lri $IX1,    #0x708e
lri $WR1,    #0x805c
cw 0xd
call send_back  ; 993 (0x03e1)

lri $AR1,    #0x961a
lri $IX1,    #0x075c
lri $WR1,    #0x77a2
cw 0xd
call send_back  ; 994 (0x03e2)

lri $AR1,    #0x9289
lri $IX1,    #0x6c00
lri $WR1,    #0x1878
cw 0xd
call send_back  ; 995 (0x03e3)

lri $AR1,    #0x26fc
lri $IX1,    #0xc1c4
lri $WR1,    #0x916d
cw 0xd
call send_back  ; 996 (0x03e4)

lri $AR1,    #0x594a
lri $IX1,    #0x6742
lri $WR1,    #0x25c3
cw 0xd
call send_back  ; 997 (0x03e5)

lri $AR1,    #0x3464
lri $IX1,    #0x5770
lri $WR1,    #0x8ed3
cw 0xd
call send_back  ; 998 (0x03e6)

lri $AR1,    #0x3dcf
lri $IX1,    #0xa2fc
lri $WR1,    #0xe08c
cw 0xd
call send_back  ; 999 (0x03e7)

lri $AR1,    #0x5fb7
lri $IX1,    #0x2fbc
lri $WR1,    #0x878c
cw 0xd
call send_back  ; 1000 (0x03e8)

lri $AR1,    #0xa68b
lri $IX1,    #0xb392
lri $WR1,    #0xa0fd
cw 0xd
call send_back  ; 1001 (0x03e9)

lri $AR1,    #0xd067
lri $IX1,    #0xfb90
lri $WR1,    #0x19ad
cw 0xd
call send_back  ; 1002 (0x03ea)

lri $AR1,    #0xe016
lri $IX1,    #0xdfa6
lri $WR1,    #0x9382
cw 0xd
call send_back  ; 1003 (0x03eb)

lri $AR1,    #0x8d04
lri $IX1,    #0xa6aa
lri $WR1,    #0x65d2
cw 0xd
call send_back  ; 1004 (0x03ec)

lri $AR1,    #0xe4f2
lri $IX1,    #0xf61e
lri $WR1,    #0x86b1
cw 0xd
call send_back  ; 1005 (0x03ed)

lri $AR1,    #0x23b6
lri $IX1,    #0x9460
lri $WR1,    #0xa8c3
cw 0xd
call send_back  ; 1006 (0x03ee)

lri $AR1,    #0x88d5
lri $IX1,    #0x23b6
lri $WR1,    #0xbaae
cw 0xd
call send_back  ; 1007 (0x03ef)

lri $AR1,    #0xaa51
lri $IX1,    #0x6ff0
lri $WR1,    #0x9a9f
cw 0xd
call send_back  ; 1008 (0x03f0)

lri $AR1,    #0xcf72
lri $IX1,    #0xcffc
lri $WR1,    #0x9a1a
cw 0xd
call send_back  ; 1009 (0x03f1)

lri $AR1,    #0x9dd9
lri $IX1,    #0x583c
lri $WR1,    #0x3b81
cw 0xd
call send_back  ; 1010 (0x03f2)

lri $AR1,    #0xb6bd
lri $IX1,    #0x09e0
lri $WR1,    #0x4477
cw 0xd
call send_back  ; 1011 (0x03f3)

lri $AR1,    #0xa987
lri $IX1,    #0xaf24
lri $WR1,    #0xb5a9
cw 0xd
call send_back  ; 1012 (0x03f4)

lri $AR1,    #0x3cb8
lri $IX1,    #0x8bba
lri $WR1,    #0x520f
cw 0xd
call send_back  ; 1013 (0x03f5)

lri $AR1,    #0x5d54
lri $IX1,    #0x543a
lri $WR1,    #0x7d28
cw 0xd
call send_back  ; 1014 (0x03f6)

lri $AR1,    #0xe8b6
lri $IX1,    #0xded0
lri $WR1,    #0x395e
cw 0xd
call send_back  ; 1015 (0x03f7)

lri $AR1,    #0x5c03
lri $IX1,    #0x9318
lri $WR1,    #0x5501
cw 0xd
call send_back  ; 1016 (0x03f8)

lri $AR1,    #0xa028
lri $IX1,    #0xa660
lri $WR1,    #0x3dfc
cw 0xd
call send_back  ; 1017 (0x03f9)

lri $AR1,    #0x88a1
lri $IX1,    #0x8d24
lri $WR1,    #0x61d5
cw 0xd
call send_back  ; 1018 (0x03fa)

lri $AR1,    #0x8ee0
lri $IX1,    #0x9a26
lri $WR1,    #0x50fe
cw 0xd
call send_back  ; 1019 (0x03fb)

lri $AR1,    #0x3b99
lri $IX1,    #0x66d4
lri $WR1,    #0x720c
cw 0xd
call send_back  ; 1020 (0x03fc)

lri $AR1,    #0x6add
lri $IX1,    #0x386a
lri $WR1,    #0xcae6
cw 0xd
call send_back  ; 1021 (0x03fd)

lri $AR1,    #0x8733
lri $IX1,    #0x007e
lri $WR1,    #0xa37b
cw 0xd
call send_back  ; 1022 (0x03fe)

lri $AR1,    #0xdb94
lri $IX1,    #0xb77c
lri $WR1,    #0x6708
cw 0xd
call send_back  ; 1023 (0x03ff)

lri $AR1,    #0x939b
lri $IX1,    #0x829a
lri $WR1,    #0x8e8b
cw 0xd
call send_back  ; 1024 (0x0400)

lri $AR1,    #0x4caf
lri $IX1,    #0x3ece
lri $WR1,    #0x686d
cw 0xd
call send_back  ; 1025 (0x0401)

lri $AR1,    #0x9a72
lri $IX1,    #0x8588
lri $WR1,    #0x9ee5
cw 0xd
call send_back  ; 1026 (0x0402)

lri $AR1,    #0x7460
lri $IX1,    #0xef66
lri $WR1,    #0x5043
cw 0xd
call send_back  ; 1027 (0x0403)

lri $AR1,    #0x89ce
lri $IX1,    #0x1cde
lri $WR1,    #0x4194
cw 0xd
call send_back  ; 1028 (0x0404)

lri $AR1,    #0x5526
lri $IX1,    #0xc3fc
lri $WR1,    #0x8dc2
cw 0xd
call send_back  ; 1029 (0x0405)

lri $AR1,    #0xd6c2
lri $IX1,    #0x8e30
lri $WR1,    #0x90b5
cw 0xd
call send_back  ; 1030 (0x0406)

lri $AR1,    #0x8310
lri $IX1,    #0xd06e
lri $WR1,    #0x8f93
cw 0xd
call send_back  ; 1031 (0x0407)

lri $AR1,    #0x876e
lri $IX1,    #0xfb54
lri $WR1,    #0xa499
cw 0xd
call send_back  ; 1032 (0x0408)

lri $AR1,    #0xf489
lri $IX1,    #0xe8d8
lri $WR1,    #0x9eb6
cw 0xd
call send_back  ; 1033 (0x0409)

lri $AR1,    #0x7c7d
lri $IX1,    #0xc828
lri $WR1,    #0x326a
cw 0xd
call send_back  ; 1034 (0x040a)

lri $AR1,    #0xa6a1
lri $IX1,    #0x3816
lri $WR1,    #0x6aef
cw 0xd
call send_back  ; 1035 (0x040b)

lri $AR1,    #0x8234
lri $IX1,    #0x03e2
lri $WR1,    #0xa05d
cw 0xd
call send_back  ; 1036 (0x040c)

lri $AR1,    #0x5cd3
lri $IX1,    #0xcdc4
lri $WR1,    #0xb0ad
cw 0xd
call send_back  ; 1037 (0x040d)

lri $AR1,    #0xb0f5
lri $IX1,    #0x9dd2
lri $WR1,    #0xb753
cw 0xd
call send_back  ; 1038 (0x040e)

lri $AR1,    #0xc44d
lri $IX1,    #0xabd6
lri $WR1,    #0xe06b
cw 0xd
call send_back  ; 1039 (0x040f)

lri $AR1,    #0xa54d
lri $IX1,    #0xadaa
lri $WR1,    #0x9a02
cw 0xd
call send_back  ; 1040 (0x0410)

lri $AR1,    #0x42b8
lri $IX1,    #0x5b92
lri $WR1,    #0xafa3
cw 0xd
call send_back  ; 1041 (0x0411)

lri $AR1,    #0x9775
lri $IX1,    #0x974a
lri $WR1,    #0xa99e
cw 0xd
call send_back  ; 1042 (0x0412)

lri $AR1,    #0xb883
lri $IX1,    #0x9222
lri $WR1,    #0x7b2e
cw 0xd
call send_back  ; 1043 (0x0413)

lri $AR1,    #0x5a5f
lri $IX1,    #0x5204
lri $WR1,    #0x8000
cw 0xd
call send_back  ; 1044 (0x0414)

lri $AR1,    #0x7ea5
lri $IX1,    #0xec94
lri $WR1,    #0xe32f
cw 0xd
call send_back  ; 1045 (0x0415)

lri $AR1,    #0x4a3e
lri $IX1,    #0x9b64
lri $WR1,    #0x274d
cw 0xd
call send_back  ; 1046 (0x0416)

lri $AR1,    #0x67ec
lri $IX1,    #0x4b66
lri $WR1,    #0x087a
cw 0xd
call send_back  ; 1047 (0x0417)

lri $AR1,    #0xb28a
lri $IX1,    #0x5d7e
lri $WR1,    #0xb723
cw 0xd
call send_back  ; 1048 (0x0418)

lri $AR1,    #0x8dbe
lri $IX1,    #0xd58e
lri $WR1,    #0xd37d
cw 0xd
call send_back  ; 1049 (0x0419)

lri $AR1,    #0xb38b
lri $IX1,    #0x10ae
lri $WR1,    #0x7f3b
cw 0xd
call send_back  ; 1050 (0x041a)

lri $AR1,    #0x3069
lri $IX1,    #0x2b02
lri $WR1,    #0xaca7
cw 0xd
call send_back  ; 1051 (0x041b)

lri $AR1,    #0x2f62
lri $IX1,    #0x60e4
lri $WR1,    #0x6795
cw 0xd
call send_back  ; 1052 (0x041c)

lri $AR1,    #0xf2e1
lri $IX1,    #0xcebe
lri $WR1,    #0x8e53
cw 0xd
call send_back  ; 1053 (0x041d)

lri $AR1,    #0x468e
lri $IX1,    #0xde6a
lri $WR1,    #0x2e1d
cw 0xd
call send_back  ; 1054 (0x041e)

lri $AR1,    #0xba11
lri $IX1,    #0x5050
lri $WR1,    #0xd829
cw 0xd
call send_back  ; 1055 (0x041f)

lri $AR1,    #0x6bf6
lri $IX1,    #0x0232
lri $WR1,    #0xa9d5
cw 0xd
call send_back  ; 1056 (0x0420)

lri $AR1,    #0x779e
lri $IX1,    #0x3cdc
lri $WR1,    #0x4c0e
cw 0xd
call send_back  ; 1057 (0x0421)

lri $AR1,    #0x9872
lri $IX1,    #0x4d96
lri $WR1,    #0xbb7c
cw 0xd
call send_back  ; 1058 (0x0422)

lri $AR1,    #0xa834
lri $IX1,    #0x5fa4
lri $WR1,    #0x1c87
cw 0xd
call send_back  ; 1059 (0x0423)

lri $AR1,    #0xa5cd
lri $IX1,    #0xcda4
lri $WR1,    #0x93b9
cw 0xd
call send_back  ; 1060 (0x0424)

lri $AR1,    #0x4d46
lri $IX1,    #0x5a14
lri $WR1,    #0x74a3
cw 0xd
call send_back  ; 1061 (0x0425)

lri $AR1,    #0xd958
lri $IX1,    #0xc9e6
lri $WR1,    #0x76be
cw 0xd
call send_back  ; 1062 (0x0426)

lri $AR1,    #0xaa5c
lri $IX1,    #0x1b48
lri $WR1,    #0x6163
cw 0xd
call send_back  ; 1063 (0x0427)

lri $AR1,    #0xa5e5
lri $IX1,    #0xe6a8
lri $WR1,    #0xa571
cw 0xd
call send_back  ; 1064 (0x0428)

lri $AR1,    #0x8dda
lri $IX1,    #0x3f10
lri $WR1,    #0x84a0
cw 0xd
call send_back  ; 1065 (0x0429)

lri $AR1,    #0xad5b
lri $IX1,    #0x82c4
lri $WR1,    #0x941b
cw 0xd
call send_back  ; 1066 (0x042a)

lri $AR1,    #0xed47
lri $IX1,    #0xdc7c
lri $WR1,    #0xf976
cw 0xd
call send_back  ; 1067 (0x042b)

lri $AR1,    #0x09b4
lri $IX1,    #0x98e8
lri $WR1,    #0x9685
cw 0xd
call send_back  ; 1068 (0x042c)

lri $AR1,    #0x1d17
lri $IX1,    #0xcbea
lri $WR1,    #0x522a
cw 0xd
call send_back  ; 1069 (0x042d)

lri $AR1,    #0xe58c
lri $IX1,    #0xec58
lri $WR1,    #0x29a8
cw 0xd
call send_back  ; 1070 (0x042e)

lri $AR1,    #0x6bef
lri $IX1,    #0xec7e
lri $WR1,    #0x9792
cw 0xd
call send_back  ; 1071 (0x042f)

lri $AR1,    #0x6c28
lri $IX1,    #0xc942
lri $WR1,    #0x82d3
cw 0xd
call send_back  ; 1072 (0x0430)

lri $AR1,    #0x6972
lri $IX1,    #0x713a
lri $WR1,    #0x31fd
cw 0xd
call send_back  ; 1073 (0x0431)

lri $AR1,    #0x98f8
lri $IX1,    #0x207a
lri $WR1,    #0x8c51
cw 0xd
call send_back  ; 1074 (0x0432)

lri $AR1,    #0xa085
lri $IX1,    #0xbd7c
lri $WR1,    #0x239f
cw 0xd
call send_back  ; 1075 (0x0433)

lri $AR1,    #0x6ea7
lri $IX1,    #0x46ce
lri $WR1,    #0x7792
cw 0xd
call send_back  ; 1076 (0x0434)

lri $AR1,    #0x8d17
lri $IX1,    #0xd90e
lri $WR1,    #0x7c71
cw 0xd
call send_back  ; 1077 (0x0435)

lri $AR1,    #0x9d9f
lri $IX1,    #0x1fc2
lri $WR1,    #0x8cd8
cw 0xd
call send_back  ; 1078 (0x0436)

lri $AR1,    #0x956e
lri $IX1,    #0x03a4
lri $WR1,    #0xef9f
cw 0xd
call send_back  ; 1079 (0x0437)

lri $AR1,    #0xa211
lri $IX1,    #0xfbe0
lri $WR1,    #0xe053
cw 0xd
call send_back  ; 1080 (0x0438)

lri $AR1,    #0x4eea
lri $IX1,    #0x6fec
lri $WR1,    #0x7270
cw 0xd
call send_back  ; 1081 (0x0439)

lri $AR1,    #0x617c
lri $IX1,    #0xf27c
lri $WR1,    #0x94d8
cw 0xd
call send_back  ; 1082 (0x043a)

lri $AR1,    #0x564d
lri $IX1,    #0xae16
lri $WR1,    #0x4cab
cw 0xd
call send_back  ; 1083 (0x043b)

lri $AR1,    #0x4fba
lri $IX1,    #0xfefe
lri $WR1,    #0x53fc
cw 0xd
call send_back  ; 1084 (0x043c)

lri $AR1,    #0x8387
lri $IX1,    #0xcdd4
lri $WR1,    #0x8281
cw 0xd
call send_back  ; 1085 (0x043d)

lri $AR1,    #0x2381
lri $IX1,    #0xa9aa
lri $WR1,    #0xa3c5
cw 0xd
call send_back  ; 1086 (0x043e)

lri $AR1,    #0xc0f9
lri $IX1,    #0xbfec
lri $WR1,    #0x7ff4
cw 0xd
call send_back  ; 1087 (0x043f)

lri $AR1,    #0x2271
lri $IX1,    #0x83e6
lri $WR1,    #0xc1cc
cw 0xd
call send_back  ; 1088 (0x0440)

lri $AR1,    #0x4e42
lri $IX1,    #0xff3a
lri $WR1,    #0x6dc1
cw 0xd
call send_back  ; 1089 (0x0441)

lri $AR1,    #0x8c99
lri $IX1,    #0x4008
lri $WR1,    #0xabea
cw 0xd
call send_back  ; 1090 (0x0442)

lri $AR1,    #0xb684
lri $IX1,    #0x093a
lri $WR1,    #0x17c5
cw 0xd
call send_back  ; 1091 (0x0443)

lri $AR1,    #0xaf7d
lri $IX1,    #0xac94
lri $WR1,    #0x7e5c
cw 0xd
call send_back  ; 1092 (0x0444)

lri $AR1,    #0x4229
lri $IX1,    #0xae0e
lri $WR1,    #0x4ce6
cw 0xd
call send_back  ; 1093 (0x0445)

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