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

lri $AR1,    #0x0040
lri $IX1,    #0x0fca
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4043 (0x0fcb)

lri $AR1,    #0x0040
lri $IX1,    #0x0fcb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4044 (0x0fcc)

lri $AR1,    #0x0040
lri $IX1,    #0x0fcc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4045 (0x0fcd)

lri $AR1,    #0x0040
lri $IX1,    #0x0fcd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4046 (0x0fce)

lri $AR1,    #0x0040
lri $IX1,    #0x0fce
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4047 (0x0fcf)

lri $AR1,    #0x0040
lri $IX1,    #0x0fcf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4048 (0x0fd0)

lri $AR1,    #0x0040
lri $IX1,    #0x0fd0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4049 (0x0fd1)

lri $AR1,    #0x0040
lri $IX1,    #0x0fd1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4050 (0x0fd2)

lri $AR1,    #0x0040
lri $IX1,    #0x0fd2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4051 (0x0fd3)

lri $AR1,    #0x0040
lri $IX1,    #0x0fd3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4052 (0x0fd4)

lri $AR1,    #0x0040
lri $IX1,    #0x0fd4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4053 (0x0fd5)

lri $AR1,    #0x0040
lri $IX1,    #0x0fd5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4054 (0x0fd6)

lri $AR1,    #0x0040
lri $IX1,    #0x0fd6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4055 (0x0fd7)

lri $AR1,    #0x0040
lri $IX1,    #0x0fd7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4056 (0x0fd8)

lri $AR1,    #0x0040
lri $IX1,    #0x0fd8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4057 (0x0fd9)

lri $AR1,    #0x0040
lri $IX1,    #0x0fd9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4058 (0x0fda)

lri $AR1,    #0x0040
lri $IX1,    #0x0fda
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4059 (0x0fdb)

lri $AR1,    #0x0040
lri $IX1,    #0x0fdb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4060 (0x0fdc)

lri $AR1,    #0x0040
lri $IX1,    #0x0fdc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4061 (0x0fdd)

lri $AR1,    #0x0040
lri $IX1,    #0x0fdd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4062 (0x0fde)

lri $AR1,    #0x0040
lri $IX1,    #0x0fde
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4063 (0x0fdf)

lri $AR1,    #0x0040
lri $IX1,    #0x0fdf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4064 (0x0fe0)

lri $AR1,    #0x0040
lri $IX1,    #0x0fe0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4065 (0x0fe1)

lri $AR1,    #0x0040
lri $IX1,    #0x0fe1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4066 (0x0fe2)

lri $AR1,    #0x0040
lri $IX1,    #0x0fe2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4067 (0x0fe3)

lri $AR1,    #0x0040
lri $IX1,    #0x0fe3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4068 (0x0fe4)

lri $AR1,    #0x0040
lri $IX1,    #0x0fe4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4069 (0x0fe5)

lri $AR1,    #0x0040
lri $IX1,    #0x0fe5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4070 (0x0fe6)

lri $AR1,    #0x0040
lri $IX1,    #0x0fe6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4071 (0x0fe7)

lri $AR1,    #0x0040
lri $IX1,    #0x0fe7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4072 (0x0fe8)

lri $AR1,    #0x0040
lri $IX1,    #0x0fe8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4073 (0x0fe9)

lri $AR1,    #0x0040
lri $IX1,    #0x0fe9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4074 (0x0fea)

lri $AR1,    #0x0040
lri $IX1,    #0x0fea
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4075 (0x0feb)

lri $AR1,    #0x0040
lri $IX1,    #0x0feb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4076 (0x0fec)

lri $AR1,    #0x0040
lri $IX1,    #0x0fec
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4077 (0x0fed)

lri $AR1,    #0x0040
lri $IX1,    #0x0fed
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4078 (0x0fee)

lri $AR1,    #0x0040
lri $IX1,    #0x0fee
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4079 (0x0fef)

lri $AR1,    #0x0040
lri $IX1,    #0x0fef
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4080 (0x0ff0)

lri $AR1,    #0x0040
lri $IX1,    #0x0ff0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4081 (0x0ff1)

lri $AR1,    #0x0040
lri $IX1,    #0x0ff1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4082 (0x0ff2)

lri $AR1,    #0x0040
lri $IX1,    #0x0ff2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4083 (0x0ff3)

lri $AR1,    #0x0040
lri $IX1,    #0x0ff3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4084 (0x0ff4)

lri $AR1,    #0x0040
lri $IX1,    #0x0ff4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4085 (0x0ff5)

lri $AR1,    #0x0040
lri $IX1,    #0x0ff5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4086 (0x0ff6)

lri $AR1,    #0x0040
lri $IX1,    #0x0ff6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4087 (0x0ff7)

lri $AR1,    #0x0040
lri $IX1,    #0x0ff7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4088 (0x0ff8)

lri $AR1,    #0x0040
lri $IX1,    #0x0ff8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4089 (0x0ff9)

lri $AR1,    #0x0040
lri $IX1,    #0x0ff9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4090 (0x0ffa)

lri $AR1,    #0x0040
lri $IX1,    #0x0ffa
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4091 (0x0ffb)

lri $AR1,    #0x0040
lri $IX1,    #0x0ffb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4092 (0x0ffc)

lri $AR1,    #0x0040
lri $IX1,    #0x0ffc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4093 (0x0ffd)

lri $AR1,    #0x0040
lri $IX1,    #0x0ffd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4094 (0x0ffe)

lri $AR1,    #0x0040
lri $IX1,    #0x0ffe
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4095 (0x0fff)

lri $AR1,    #0x0040
lri $IX1,    #0x0fff
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4096 (0x1000)

lri $AR1,    #0x0040
lri $IX1,    #0x1000
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4097 (0x1001)

lri $AR1,    #0x0040
lri $IX1,    #0x1001
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4098 (0x1002)

lri $AR1,    #0x0040
lri $IX1,    #0x1002
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4099 (0x1003)

lri $AR1,    #0x0040
lri $IX1,    #0x1003
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4100 (0x1004)

lri $AR1,    #0x0040
lri $IX1,    #0x1004
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4101 (0x1005)

lri $AR1,    #0x0040
lri $IX1,    #0x1005
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4102 (0x1006)

lri $AR1,    #0x0040
lri $IX1,    #0x1006
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4103 (0x1007)

lri $AR1,    #0x0040
lri $IX1,    #0x1007
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4104 (0x1008)

lri $AR1,    #0x0040
lri $IX1,    #0x1008
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4105 (0x1009)

lri $AR1,    #0x0040
lri $IX1,    #0x1009
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4106 (0x100a)

lri $AR1,    #0x0040
lri $IX1,    #0x100a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4107 (0x100b)

lri $AR1,    #0x0040
lri $IX1,    #0x100b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4108 (0x100c)

lri $AR1,    #0x0040
lri $IX1,    #0x100c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4109 (0x100d)

lri $AR1,    #0x0040
lri $IX1,    #0x100d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4110 (0x100e)

lri $AR1,    #0x0040
lri $IX1,    #0x100e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4111 (0x100f)

lri $AR1,    #0x0040
lri $IX1,    #0x100f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4112 (0x1010)

lri $AR1,    #0x0040
lri $IX1,    #0x1010
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4113 (0x1011)

lri $AR1,    #0x0040
lri $IX1,    #0x1011
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4114 (0x1012)

lri $AR1,    #0x0040
lri $IX1,    #0x1012
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4115 (0x1013)

lri $AR1,    #0x0040
lri $IX1,    #0x1013
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4116 (0x1014)

lri $AR1,    #0x0040
lri $IX1,    #0x1014
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4117 (0x1015)

lri $AR1,    #0x0040
lri $IX1,    #0x1015
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4118 (0x1016)

lri $AR1,    #0x0040
lri $IX1,    #0x1016
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4119 (0x1017)

lri $AR1,    #0x0040
lri $IX1,    #0x1017
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4120 (0x1018)

lri $AR1,    #0x0040
lri $IX1,    #0x1018
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4121 (0x1019)

lri $AR1,    #0x0040
lri $IX1,    #0x1019
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4122 (0x101a)

lri $AR1,    #0x0040
lri $IX1,    #0x101a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4123 (0x101b)

lri $AR1,    #0x0040
lri $IX1,    #0x101b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4124 (0x101c)

lri $AR1,    #0x0040
lri $IX1,    #0x101c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4125 (0x101d)

lri $AR1,    #0x0040
lri $IX1,    #0x101d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4126 (0x101e)

lri $AR1,    #0x0040
lri $IX1,    #0x101e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4127 (0x101f)

lri $AR1,    #0x0040
lri $IX1,    #0x101f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4128 (0x1020)

lri $AR1,    #0x0040
lri $IX1,    #0x1020
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4129 (0x1021)

lri $AR1,    #0x0040
lri $IX1,    #0x1021
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4130 (0x1022)

lri $AR1,    #0x0040
lri $IX1,    #0x1022
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4131 (0x1023)

lri $AR1,    #0x0040
lri $IX1,    #0x1023
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4132 (0x1024)

lri $AR1,    #0x0040
lri $IX1,    #0x1024
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4133 (0x1025)

lri $AR1,    #0x0040
lri $IX1,    #0x1025
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4134 (0x1026)

lri $AR1,    #0x0040
lri $IX1,    #0x1026
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4135 (0x1027)

lri $AR1,    #0x0040
lri $IX1,    #0x1027
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4136 (0x1028)

lri $AR1,    #0x0040
lri $IX1,    #0x1028
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4137 (0x1029)

lri $AR1,    #0x0040
lri $IX1,    #0x1029
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4138 (0x102a)

lri $AR1,    #0x0040
lri $IX1,    #0x102a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4139 (0x102b)

lri $AR1,    #0x0040
lri $IX1,    #0x102b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4140 (0x102c)

lri $AR1,    #0x0040
lri $IX1,    #0x102c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4141 (0x102d)

lri $AR1,    #0x0040
lri $IX1,    #0x102d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4142 (0x102e)

lri $AR1,    #0x0040
lri $IX1,    #0x102e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4143 (0x102f)

lri $AR1,    #0x0040
lri $IX1,    #0x102f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4144 (0x1030)

lri $AR1,    #0x0040
lri $IX1,    #0x1030
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4145 (0x1031)

lri $AR1,    #0x0040
lri $IX1,    #0x1031
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4146 (0x1032)

lri $AR1,    #0x0040
lri $IX1,    #0x1032
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4147 (0x1033)

lri $AR1,    #0x0040
lri $IX1,    #0x1033
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4148 (0x1034)

lri $AR1,    #0x0040
lri $IX1,    #0x1034
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4149 (0x1035)

lri $AR1,    #0x0040
lri $IX1,    #0x1035
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4150 (0x1036)

lri $AR1,    #0x0040
lri $IX1,    #0x1036
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4151 (0x1037)

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