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

lri $AR1,    #0x0830
lri $IX1,    #0xaa10
lri $WR1,    #0xd000
cw 0x5
call send_back  ; 1025 (0x0401)

lri $AR1,    #0xafde
lri $IX1,    #0x3e24
lri $WR1,    #0x2116
cw 0x5
call send_back  ; 1026 (0x0402)

lri $AR1,    #0x08ce
lri $IX1,    #0x7252
lri $WR1,    #0xdca0
cw 0x5
call send_back  ; 1027 (0x0403)

lri $AR1,    #0x0e8c
lri $IX1,    #0x762e
lri $WR1,    #0xd772
cw 0x5
call send_back  ; 1028 (0x0404)

lri $AR1,    #0xba12
lri $IX1,    #0x1248
lri $WR1,    #0x4f3c
cw 0x5
call send_back  ; 1029 (0x0405)

lri $AR1,    #0x75f8
lri $IX1,    #0xdde0
lri $WR1,    #0x333c
cw 0x5
call send_back  ; 1030 (0x0406)

lri $AR1,    #0xa7c8
lri $IX1,    #0x18a4
lri $WR1,    #0x556e
cw 0x5
call send_back  ; 1031 (0x0407)

lri $AR1,    #0x805c
lri $IX1,    #0x2d8e
lri $WR1,    #0xa65e
cw 0x5
call send_back  ; 1032 (0x0408)

lri $AR1,    #0x1ba2
lri $IX1,    #0x7a0e
lri $WR1,    #0x8c04
cw 0x5
call send_back  ; 1033 (0x0409)

lri $AR1,    #0x16de
lri $IX1,    #0xdafa
lri $WR1,    #0xec06
cw 0x5
call send_back  ; 1034 (0x040a)

lri $AR1,    #0x7ea6
lri $IX1,    #0x5bd4
lri $WR1,    #0xd200
cw 0x5
call send_back  ; 1035 (0x040b)

lri $AR1,    #0x5fba
lri $IX1,    #0x19ba
lri $WR1,    #0xa692
cw 0x5
call send_back  ; 1036 (0x040c)

lri $AR1,    #0xa262
lri $IX1,    #0xcf40
lri $WR1,    #0x5196
cw 0x5
call send_back  ; 1037 (0x040d)

lri $AR1,    #0xf230
lri $IX1,    #0x5276
lri $WR1,    #0xc0be
cw 0x5
call send_back  ; 1038 (0x040e)

lri $AR1,    #0x486c
lri $IX1,    #0x3a38
lri $WR1,    #0x493e
cw 0x5
call send_back  ; 1039 (0x040f)

lri $AR1,    #0x724e
lri $IX1,    #0x6a90
lri $WR1,    #0x45cc
cw 0x5
call send_back  ; 1040 (0x0410)

lri $AR1,    #0x8cf0
lri $IX1,    #0x3e64
lri $WR1,    #0xe144
cw 0x5
call send_back  ; 1041 (0x0411)

lri $AR1,    #0x6f50
lri $IX1,    #0x0c06
lri $WR1,    #0xe0ba
cw 0x5
call send_back  ; 1042 (0x0412)

lri $AR1,    #0x63f8
lri $IX1,    #0x5090
lri $WR1,    #0x38bc
cw 0x5
call send_back  ; 1043 (0x0413)

lri $AR1,    #0xc3b8
lri $IX1,    #0xf016
lri $WR1,    #0xbb66
cw 0x5
call send_back  ; 1044 (0x0414)

lri $AR1,    #0xbf20
lri $IX1,    #0xfe5a
lri $WR1,    #0x6f50
cw 0x5
call send_back  ; 1045 (0x0415)

lri $AR1,    #0xe6e8
lri $IX1,    #0x9d94
lri $WR1,    #0x2a94
cw 0x5
call send_back  ; 1046 (0x0416)

lri $AR1,    #0xd45c
lri $IX1,    #0x390a
lri $WR1,    #0x67da
cw 0x5
call send_back  ; 1047 (0x0417)

lri $AR1,    #0xbc46
lri $IX1,    #0xb648
lri $WR1,    #0x94c8
cw 0x5
call send_back  ; 1048 (0x0418)

lri $AR1,    #0xfc96
lri $IX1,    #0x0096
lri $WR1,    #0xf238
cw 0x5
call send_back  ; 1049 (0x0419)

lri $AR1,    #0x94d4
lri $IX1,    #0x7564
lri $WR1,    #0x6de4
cw 0x5
call send_back  ; 1050 (0x041a)

lri $AR1,    #0x5bb4
lri $IX1,    #0x9ab2
lri $WR1,    #0x994e
cw 0x5
call send_back  ; 1051 (0x041b)

lri $AR1,    #0x6c26
lri $IX1,    #0x0372
lri $WR1,    #0x1a68
cw 0x5
call send_back  ; 1052 (0x041c)

lri $AR1,    #0x99de
lri $IX1,    #0x3ddc
lri $WR1,    #0x1c96
cw 0x5
call send_back  ; 1053 (0x041d)

lri $AR1,    #0x0aa6
lri $IX1,    #0x62a8
lri $WR1,    #0x3172
cw 0x5
call send_back  ; 1054 (0x041e)

lri $AR1,    #0x0880
lri $IX1,    #0xe16c
lri $WR1,    #0x434a
cw 0x5
call send_back  ; 1055 (0x041f)

lri $AR1,    #0xc326
lri $IX1,    #0x9112
lri $WR1,    #0x0534
cw 0x5
call send_back  ; 1056 (0x0420)

lri $AR1,    #0x3bfe
lri $IX1,    #0xd772
lri $WR1,    #0xd97a
cw 0x5
call send_back  ; 1057 (0x0421)

lri $AR1,    #0x1a94
lri $IX1,    #0xb496
lri $WR1,    #0xb5f8
cw 0x5
call send_back  ; 1058 (0x0422)

lri $AR1,    #0x0d76
lri $IX1,    #0x1670
lri $WR1,    #0xe610
cw 0x5
call send_back  ; 1059 (0x0423)

lri $AR1,    #0xece6
lri $IX1,    #0x5722
lri $WR1,    #0x7c98
cw 0x5
call send_back  ; 1060 (0x0424)

lri $AR1,    #0xbe96
lri $IX1,    #0xc4da
lri $WR1,    #0x2338
cw 0x5
call send_back  ; 1061 (0x0425)

lri $AR1,    #0xb2f8
lri $IX1,    #0x8806
lri $WR1,    #0x6d52
cw 0x5
call send_back  ; 1062 (0x0426)

lri $AR1,    #0x3be2
lri $IX1,    #0xd13a
lri $WR1,    #0x1904
cw 0x5
call send_back  ; 1063 (0x0427)

lri $AR1,    #0x8994
lri $IX1,    #0xc1f8
lri $WR1,    #0xd4f0
cw 0x5
call send_back  ; 1064 (0x0428)

lri $AR1,    #0xd872
lri $IX1,    #0x460a
lri $WR1,    #0x8cce
cw 0x5
call send_back  ; 1065 (0x0429)

lri $AR1,    #0xa242
lri $IX1,    #0x5b86
lri $WR1,    #0x9e3a
cw 0x5
call send_back  ; 1066 (0x042a)

lri $AR1,    #0xf87a
lri $IX1,    #0xb908
lri $WR1,    #0xe64c
cw 0x5
call send_back  ; 1067 (0x042b)

lri $AR1,    #0xfb22
lri $IX1,    #0xaaa0
lri $WR1,    #0x0682
cw 0x5
call send_back  ; 1068 (0x042c)

lri $AR1,    #0x96aa
lri $IX1,    #0xd228
lri $WR1,    #0x55b0
cw 0x5
call send_back  ; 1069 (0x042d)

lri $AR1,    #0xbb74
lri $IX1,    #0x81f2
lri $WR1,    #0x6c7a
cw 0x5
call send_back  ; 1070 (0x042e)

lri $AR1,    #0x02b8
lri $IX1,    #0x8ed2
lri $WR1,    #0x8ce0
cw 0x5
call send_back  ; 1071 (0x042f)

lri $AR1,    #0x7f00
lri $IX1,    #0xe9ac
lri $WR1,    #0x54f0
cw 0x5
call send_back  ; 1072 (0x0430)

lri $AR1,    #0x462c
lri $IX1,    #0xbaba
lri $WR1,    #0x6024
cw 0x5
call send_back  ; 1073 (0x0431)

lri $AR1,    #0x5316
lri $IX1,    #0x8b88
lri $WR1,    #0xfdae
cw 0x5
call send_back  ; 1074 (0x0432)

lri $AR1,    #0xe6ae
lri $IX1,    #0x37c2
lri $WR1,    #0x412e
cw 0x5
call send_back  ; 1075 (0x0433)

lri $AR1,    #0x4c50
lri $IX1,    #0xdc92
lri $WR1,    #0x1f36
cw 0x5
call send_back  ; 1076 (0x0434)

lri $AR1,    #0xe3e6
lri $IX1,    #0x3b66
lri $WR1,    #0xe21c
cw 0x5
call send_back  ; 1077 (0x0435)

lri $AR1,    #0x8cb6
lri $IX1,    #0x3d8e
lri $WR1,    #0xf274
cw 0x5
call send_back  ; 1078 (0x0436)

lri $AR1,    #0x7160
lri $IX1,    #0xc022
lri $WR1,    #0x0424
cw 0x5
call send_back  ; 1079 (0x0437)

lri $AR1,    #0x6ea2
lri $IX1,    #0xb584
lri $WR1,    #0x5024
cw 0x5
call send_back  ; 1080 (0x0438)

lri $AR1,    #0xab4c
lri $IX1,    #0x2e24
lri $WR1,    #0x288e
cw 0x5
call send_back  ; 1081 (0x0439)

lri $AR1,    #0x70d6
lri $IX1,    #0x3058
lri $WR1,    #0xec26
cw 0x5
call send_back  ; 1082 (0x043a)

lri $AR1,    #0xff9e
lri $IX1,    #0xcee8
lri $WR1,    #0x28d0
cw 0x5
call send_back  ; 1083 (0x043b)

lri $AR1,    #0x952a
lri $IX1,    #0xedc6
lri $WR1,    #0x6750
cw 0x5
call send_back  ; 1084 (0x043c)

lri $AR1,    #0xdb7c
lri $IX1,    #0x1bfc
lri $WR1,    #0x4546
cw 0x5
call send_back  ; 1085 (0x043d)

lri $AR1,    #0x4366
lri $IX1,    #0xabea
lri $WR1,    #0x5714
cw 0x5
call send_back  ; 1086 (0x043e)

lri $AR1,    #0xff5c
lri $IX1,    #0x819a
lri $WR1,    #0xa078
cw 0x5
call send_back  ; 1087 (0x043f)

lri $AR1,    #0x8e7a
lri $IX1,    #0xb284
lri $WR1,    #0x928e
cw 0x5
call send_back  ; 1088 (0x0440)

lri $AR1,    #0x4ad4
lri $IX1,    #0xe238
lri $WR1,    #0xff4a
cw 0x5
call send_back  ; 1089 (0x0441)

lri $AR1,    #0x12c6
lri $IX1,    #0xdb14
lri $WR1,    #0x3138
cw 0x5
call send_back  ; 1090 (0x0442)

lri $AR1,    #0x7b86
lri $IX1,    #0x28d2
lri $WR1,    #0xa52e
cw 0x5
call send_back  ; 1091 (0x0443)

lri $AR1,    #0xa8b6
lri $IX1,    #0xa430
lri $WR1,    #0xcfee
cw 0x5
call send_back  ; 1092 (0x0444)

lri $AR1,    #0xe108
lri $IX1,    #0xa41c
lri $WR1,    #0xdda0
cw 0x5
call send_back  ; 1093 (0x0445)

lri $AR1,    #0xf732
lri $IX1,    #0xecfe
lri $WR1,    #0x0574
cw 0x5
call send_back  ; 1094 (0x0446)

lri $AR1,    #0x0a5a
lri $IX1,    #0xdd32
lri $WR1,    #0xdaee
cw 0x5
call send_back  ; 1095 (0x0447)

lri $AR1,    #0xae50
lri $IX1,    #0xc054
lri $WR1,    #0x9032
cw 0x5
call send_back  ; 1096 (0x0448)

lri $AR1,    #0x8fb8
lri $IX1,    #0x4126
lri $WR1,    #0xa4bc
cw 0x5
call send_back  ; 1097 (0x0449)

lri $AR1,    #0xfabc
lri $IX1,    #0x3d4c
lri $WR1,    #0xd346
cw 0x5
call send_back  ; 1098 (0x044a)

lri $AR1,    #0xf644
lri $IX1,    #0x64de
lri $WR1,    #0x7f30
cw 0x5
call send_back  ; 1099 (0x044b)

lri $AR1,    #0xb73e
lri $IX1,    #0xcdec
lri $WR1,    #0xd1be
cw 0x5
call send_back  ; 1100 (0x044c)

lri $AR1,    #0xe18c
lri $IX1,    #0x07bc
lri $WR1,    #0x1e42
cw 0x5
call send_back  ; 1101 (0x044d)

lri $AR1,    #0x21ce
lri $IX1,    #0x1aaa
lri $WR1,    #0x1afc
cw 0x5
call send_back  ; 1102 (0x044e)

lri $AR1,    #0xf930
lri $IX1,    #0x6170
lri $WR1,    #0xbf04
cw 0x5
call send_back  ; 1103 (0x044f)

lri $AR1,    #0x86b2
lri $IX1,    #0x2442
lri $WR1,    #0x2c1c
cw 0x5
call send_back  ; 1104 (0x0450)

lri $AR1,    #0xb7ca
lri $IX1,    #0xdc6a
lri $WR1,    #0x8370
cw 0x5
call send_back  ; 1105 (0x0451)

lri $AR1,    #0x8c12
lri $IX1,    #0x43ee
lri $WR1,    #0xc676
cw 0x5
call send_back  ; 1106 (0x0452)

lri $AR1,    #0x6264
lri $IX1,    #0x3e72
lri $WR1,    #0xcba6
cw 0x5
call send_back  ; 1107 (0x0453)

lri $AR1,    #0xad56
lri $IX1,    #0x2440
lri $WR1,    #0xc3ee
cw 0x5
call send_back  ; 1108 (0x0454)

lri $AR1,    #0x4e72
lri $IX1,    #0x8d9a
lri $WR1,    #0x61ec
cw 0x5
call send_back  ; 1109 (0x0455)

lri $AR1,    #0x25f8
lri $IX1,    #0xb3b0
lri $WR1,    #0x2656
cw 0x5
call send_back  ; 1110 (0x0456)

lri $AR1,    #0xfeda
lri $IX1,    #0xd858
lri $WR1,    #0xc59a
cw 0x5
call send_back  ; 1111 (0x0457)

lri $AR1,    #0x27fa
lri $IX1,    #0x3c4a
lri $WR1,    #0x9f66
cw 0x5
call send_back  ; 1112 (0x0458)

lri $AR1,    #0x1ece
lri $IX1,    #0x8bca
lri $WR1,    #0x531e
cw 0x5
call send_back  ; 1113 (0x0459)

lri $AR1,    #0xe2a6
lri $IX1,    #0xd25a
lri $WR1,    #0xbbb8
cw 0x5
call send_back  ; 1114 (0x045a)

lri $AR1,    #0x9c14
lri $IX1,    #0x53f8
lri $WR1,    #0x1644
cw 0x5
call send_back  ; 1115 (0x045b)

lri $AR1,    #0xb2d8
lri $IX1,    #0xce98
lri $WR1,    #0x533c
cw 0x5
call send_back  ; 1116 (0x045c)

lri $AR1,    #0xb88e
lri $IX1,    #0xbe42
lri $WR1,    #0x5e08
cw 0x5
call send_back  ; 1117 (0x045d)

lri $AR1,    #0xf676
lri $IX1,    #0xa6c4
lri $WR1,    #0x0674
cw 0x5
call send_back  ; 1118 (0x045e)

lri $AR1,    #0x7d7a
lri $IX1,    #0x1e80
lri $WR1,    #0x4ffc
cw 0x5
call send_back  ; 1119 (0x045f)

lri $AR1,    #0x8946
lri $IX1,    #0xd20c
lri $WR1,    #0x802a
cw 0x5
call send_back  ; 1120 (0x0460)

lri $AR1,    #0x2966
lri $IX1,    #0xac50
lri $WR1,    #0x5ba0
cw 0x5
call send_back  ; 1121 (0x0461)

lri $AR1,    #0x09e6
lri $IX1,    #0x1d4e
lri $WR1,    #0x0fc6
cw 0x5
call send_back  ; 1122 (0x0462)

lri $AR1,    #0x9c2e
lri $IX1,    #0x8dec
lri $WR1,    #0x2caa
cw 0x5
call send_back  ; 1123 (0x0463)

lri $AR1,    #0xc9ec
lri $IX1,    #0x858a
lri $WR1,    #0x18e6
cw 0x5
call send_back  ; 1124 (0x0464)

lri $AR1,    #0x0b1a
lri $IX1,    #0xb300
lri $WR1,    #0x35a6
cw 0x5
call send_back  ; 1125 (0x0465)

lri $AR1,    #0xdd16
lri $IX1,    #0xfd78
lri $WR1,    #0xe992
cw 0x5
call send_back  ; 1126 (0x0466)

lri $AR1,    #0x0962
lri $IX1,    #0x1a00
lri $WR1,    #0xc2dc
cw 0x5
call send_back  ; 1127 (0x0467)

lri $AR1,    #0x3780
lri $IX1,    #0x0dd0
lri $WR1,    #0xe890
cw 0x5
call send_back  ; 1128 (0x0468)

lri $AR1,    #0xd022
lri $IX1,    #0x7f50
lri $WR1,    #0x57fc
cw 0x5
call send_back  ; 1129 (0x0469)

lri $AR1,    #0x53c0
lri $IX1,    #0xa5f8
lri $WR1,    #0xda1c
cw 0x5
call send_back  ; 1130 (0x046a)

lri $AR1,    #0x4b32
lri $IX1,    #0xa5c6
lri $WR1,    #0x8960
cw 0x5
call send_back  ; 1131 (0x046b)

lri $AR1,    #0x8dfc
lri $IX1,    #0x55d0
lri $WR1,    #0x51b6
cw 0x5
call send_back  ; 1132 (0x046c)

lri $AR1,    #0x66ba
lri $IX1,    #0x84ec
lri $WR1,    #0x2c7e
cw 0x5
call send_back  ; 1133 (0x046d)

lri $AR1,    #0x61ae
lri $IX1,    #0x2750
lri $WR1,    #0x6c36
cw 0x5
call send_back  ; 1134 (0x046e)

lri $AR1,    #0x0c02
lri $IX1,    #0xd17c
lri $WR1,    #0x4156
cw 0x5
call send_back  ; 1135 (0x046f)

lri $AR1,    #0x2456
lri $IX1,    #0x0986
lri $WR1,    #0xbdc4
cw 0x5
call send_back  ; 1136 (0x0470)

lri $AR1,    #0xca7a
lri $IX1,    #0xa966
lri $WR1,    #0xf95c
cw 0x5
call send_back  ; 1137 (0x0471)

lri $AR1,    #0xcfb0
lri $IX1,    #0xd4e8
lri $WR1,    #0x1c04
cw 0x5
call send_back  ; 1138 (0x0472)

lri $AR1,    #0xf44a
lri $IX1,    #0xcd10
lri $WR1,    #0x5ed2
cw 0x5
call send_back  ; 1139 (0x0473)

lri $AR1,    #0x12ba
lri $IX1,    #0x0350
lri $WR1,    #0xb500
cw 0x5
call send_back  ; 1140 (0x0474)

lri $AR1,    #0x9c76
lri $IX1,    #0xdbe8
lri $WR1,    #0xf9f2
cw 0x5
call send_back  ; 1141 (0x0475)

lri $AR1,    #0x511c
lri $IX1,    #0xe4ae
lri $WR1,    #0xd82a
cw 0x5
call send_back  ; 1142 (0x0476)

lri $AR1,    #0x06fa
lri $IX1,    #0xa31a
lri $WR1,    #0x07ec
cw 0x5
call send_back  ; 1143 (0x0477)

lri $AR1,    #0x9540
lri $IX1,    #0x03c8
lri $WR1,    #0x16fe
cw 0x5
call send_back  ; 1144 (0x0478)

lri $AR1,    #0x59ce
lri $IX1,    #0xd176
lri $WR1,    #0x0a1a
cw 0x5
call send_back  ; 1145 (0x0479)

lri $AR1,    #0xe1b8
lri $IX1,    #0x351c
lri $WR1,    #0x0f8c
cw 0x5
call send_back  ; 1146 (0x047a)

lri $AR1,    #0x5846
lri $IX1,    #0x7454
lri $WR1,    #0x425a
cw 0x5
call send_back  ; 1147 (0x047b)

lri $AR1,    #0xe324
lri $IX1,    #0x0c1a
lri $WR1,    #0x6b9c
cw 0x5
call send_back  ; 1148 (0x047c)

lri $AR1,    #0x48c4
lri $IX1,    #0x9d9a
lri $WR1,    #0xbc0a
cw 0x5
call send_back  ; 1149 (0x047d)

lri $AR1,    #0xe444
lri $IX1,    #0xd1e2
lri $WR1,    #0x8382
cw 0x5
call send_back  ; 1150 (0x047e)

lri $AR1,    #0x770c
lri $IX1,    #0x9b8e
lri $WR1,    #0x6788
cw 0x5
call send_back  ; 1151 (0x047f)

lri $AR1,    #0x327e
lri $IX1,    #0x32d8
lri $WR1,    #0xc47a
cw 0x5
call send_back  ; 1152 (0x0480)

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

