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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65025 (0xfe01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65026 (0xfe02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65027 (0xfe03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65028 (0xfe04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65029 (0xfe05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65030 (0xfe06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65031 (0xfe07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65032 (0xfe08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65033 (0xfe09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65034 (0xfe0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65035 (0xfe0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65036 (0xfe0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65037 (0xfe0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65038 (0xfe0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65039 (0xfe0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65040 (0xfe10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65041 (0xfe11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65042 (0xfe12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65043 (0xfe13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65044 (0xfe14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65045 (0xfe15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65046 (0xfe16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65047 (0xfe17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65048 (0xfe18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65049 (0xfe19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65050 (0xfe1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65051 (0xfe1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65052 (0xfe1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65053 (0xfe1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65054 (0xfe1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65055 (0xfe1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65056 (0xfe20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65057 (0xfe21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65058 (0xfe22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65059 (0xfe23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65060 (0xfe24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65061 (0xfe25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65062 (0xfe26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65063 (0xfe27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65064 (0xfe28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65065 (0xfe29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65066 (0xfe2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65067 (0xfe2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65068 (0xfe2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65069 (0xfe2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65070 (0xfe2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65071 (0xfe2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65072 (0xfe30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65073 (0xfe31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65074 (0xfe32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65075 (0xfe33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65076 (0xfe34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65077 (0xfe35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65078 (0xfe36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65079 (0xfe37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65080 (0xfe38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65081 (0xfe39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65082 (0xfe3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65083 (0xfe3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65084 (0xfe3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65085 (0xfe3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65086 (0xfe3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65087 (0xfe3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65088 (0xfe40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65089 (0xfe41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65090 (0xfe42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65091 (0xfe43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65092 (0xfe44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65093 (0xfe45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65094 (0xfe46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65095 (0xfe47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65096 (0xfe48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65097 (0xfe49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65098 (0xfe4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65099 (0xfe4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65100 (0xfe4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65101 (0xfe4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65102 (0xfe4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65103 (0xfe4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65104 (0xfe50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65105 (0xfe51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65106 (0xfe52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65107 (0xfe53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65108 (0xfe54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65109 (0xfe55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65110 (0xfe56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65111 (0xfe57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65112 (0xfe58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65113 (0xfe59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65114 (0xfe5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65115 (0xfe5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65116 (0xfe5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65117 (0xfe5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65118 (0xfe5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65119 (0xfe5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65120 (0xfe60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65121 (0xfe61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65122 (0xfe62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65123 (0xfe63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65124 (0xfe64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65125 (0xfe65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65126 (0xfe66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65127 (0xfe67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65128 (0xfe68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65129 (0xfe69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65130 (0xfe6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65131 (0xfe6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65132 (0xfe6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65133 (0xfe6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65134 (0xfe6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65135 (0xfe6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65136 (0xfe70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65137 (0xfe71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65138 (0xfe72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65139 (0xfe73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65140 (0xfe74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65141 (0xfe75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65142 (0xfe76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65143 (0xfe77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65144 (0xfe78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65145 (0xfe79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65146 (0xfe7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65147 (0xfe7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65148 (0xfe7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65149 (0xfe7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65150 (0xfe7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65151 (0xfe7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65152 (0xfe80)

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