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

lri $AR1,    #0x0000
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 1 (0x0001)

lri $AR1,    #0x0001
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 2 (0x0002)

lri $AR1,    #0x0002
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 3 (0x0003)

lri $AR1,    #0x0003
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 4 (0x0004)

lri $AR1,    #0x0004
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 5 (0x0005)

lri $AR1,    #0x0005
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 6 (0x0006)

lri $AR1,    #0x0006
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 7 (0x0007)

lri $AR1,    #0x0007
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8 (0x0008)

lri $AR1,    #0x0008
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 9 (0x0009)

lri $AR1,    #0x0009
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 10 (0x000a)

lri $AR1,    #0x000a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 11 (0x000b)

lri $AR1,    #0x000b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 12 (0x000c)

lri $AR1,    #0x000c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 13 (0x000d)

lri $AR1,    #0x000d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 14 (0x000e)

lri $AR1,    #0x000e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 15 (0x000f)

lri $AR1,    #0x000f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16 (0x0010)

lri $AR1,    #0x0010
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 17 (0x0011)

lri $AR1,    #0x0011
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 18 (0x0012)

lri $AR1,    #0x0012
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 19 (0x0013)

lri $AR1,    #0x0013
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 20 (0x0014)

lri $AR1,    #0x0014
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 21 (0x0015)

lri $AR1,    #0x0015
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 22 (0x0016)

lri $AR1,    #0x0016
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 23 (0x0017)

lri $AR1,    #0x0017
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 24 (0x0018)

lri $AR1,    #0x0018
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 25 (0x0019)

lri $AR1,    #0x0019
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 26 (0x001a)

lri $AR1,    #0x001a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 27 (0x001b)

lri $AR1,    #0x001b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 28 (0x001c)

lri $AR1,    #0x001c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 29 (0x001d)

lri $AR1,    #0x001d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 30 (0x001e)

lri $AR1,    #0x001e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 31 (0x001f)

lri $AR1,    #0x001f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32 (0x0020)

lri $AR1,    #0x0020
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 33 (0x0021)

lri $AR1,    #0x0021
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 34 (0x0022)

lri $AR1,    #0x0022
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 35 (0x0023)

lri $AR1,    #0x0023
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36 (0x0024)

lri $AR1,    #0x0024
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 37 (0x0025)

lri $AR1,    #0x0025
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 38 (0x0026)

lri $AR1,    #0x0026
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 39 (0x0027)

lri $AR1,    #0x0027
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40 (0x0028)

lri $AR1,    #0x0028
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 41 (0x0029)

lri $AR1,    #0x0029
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 42 (0x002a)

lri $AR1,    #0x002a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43 (0x002b)

lri $AR1,    #0x002b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 44 (0x002c)

lri $AR1,    #0x002c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 45 (0x002d)

lri $AR1,    #0x002d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 46 (0x002e)

lri $AR1,    #0x002e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 47 (0x002f)

lri $AR1,    #0x002f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48 (0x0030)

lri $AR1,    #0x0030
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 49 (0x0031)

lri $AR1,    #0x0031
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 50 (0x0032)

lri $AR1,    #0x0032
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 51 (0x0033)

lri $AR1,    #0x0033
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52 (0x0034)

lri $AR1,    #0x0034
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53 (0x0035)

lri $AR1,    #0x0035
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 54 (0x0036)

lri $AR1,    #0x0036
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 55 (0x0037)

lri $AR1,    #0x0037
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 56 (0x0038)

lri $AR1,    #0x0038
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 57 (0x0039)

lri $AR1,    #0x0039
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58 (0x003a)

lri $AR1,    #0x003a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 59 (0x003b)

lri $AR1,    #0x003b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 60 (0x003c)

lri $AR1,    #0x003c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 61 (0x003d)

lri $AR1,    #0x003d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 62 (0x003e)

lri $AR1,    #0x003e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 63 (0x003f)

lri $AR1,    #0x003f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 64 (0x0040)

lri $AR1,    #0x0040
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65 (0x0041)

lri $AR1,    #0x0041
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 66 (0x0042)

lri $AR1,    #0x0042
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 67 (0x0043)

lri $AR1,    #0x0043
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 68 (0x0044)

lri $AR1,    #0x0044
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 69 (0x0045)

lri $AR1,    #0x0045
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 70 (0x0046)

lri $AR1,    #0x0046
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 71 (0x0047)

lri $AR1,    #0x0047
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 72 (0x0048)

lri $AR1,    #0x0048
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 73 (0x0049)

lri $AR1,    #0x0049
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 74 (0x004a)

lri $AR1,    #0x004a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 75 (0x004b)

lri $AR1,    #0x004b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 76 (0x004c)

lri $AR1,    #0x004c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 77 (0x004d)

lri $AR1,    #0x004d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 78 (0x004e)

lri $AR1,    #0x004e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 79 (0x004f)

lri $AR1,    #0x004f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 80 (0x0050)

lri $AR1,    #0x0050
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 81 (0x0051)

lri $AR1,    #0x0051
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 82 (0x0052)

lri $AR1,    #0x0052
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 83 (0x0053)

lri $AR1,    #0x0053
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 84 (0x0054)

lri $AR1,    #0x0054
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 85 (0x0055)

lri $AR1,    #0x0055
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 86 (0x0056)

lri $AR1,    #0x0056
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 87 (0x0057)

lri $AR1,    #0x0057
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 88 (0x0058)

lri $AR1,    #0x0058
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 89 (0x0059)

lri $AR1,    #0x0059
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 90 (0x005a)

lri $AR1,    #0x005a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 91 (0x005b)

lri $AR1,    #0x005b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 92 (0x005c)

lri $AR1,    #0x005c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 93 (0x005d)

lri $AR1,    #0x005d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 94 (0x005e)

lri $AR1,    #0x005e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 95 (0x005f)

lri $AR1,    #0x005f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 96 (0x0060)

lri $AR1,    #0x0060
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 97 (0x0061)

lri $AR1,    #0x0061
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 98 (0x0062)

lri $AR1,    #0x0062
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 99 (0x0063)

lri $AR1,    #0x0063
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 100 (0x0064)

lri $AR1,    #0x0064
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 101 (0x0065)

lri $AR1,    #0x0065
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 102 (0x0066)

lri $AR1,    #0x0066
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 103 (0x0067)

lri $AR1,    #0x0067
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 104 (0x0068)

lri $AR1,    #0x0068
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 105 (0x0069)

lri $AR1,    #0x0069
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 106 (0x006a)

lri $AR1,    #0x006a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 107 (0x006b)

lri $AR1,    #0x006b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 108 (0x006c)

lri $AR1,    #0x006c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 109 (0x006d)

lri $AR1,    #0x006d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 110 (0x006e)

lri $AR1,    #0x006e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 111 (0x006f)

lri $AR1,    #0x006f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 112 (0x0070)

lri $AR1,    #0x0070
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 113 (0x0071)

lri $AR1,    #0x0071
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 114 (0x0072)

lri $AR1,    #0x0072
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 115 (0x0073)

lri $AR1,    #0x0073
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 116 (0x0074)

lri $AR1,    #0x0074
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 117 (0x0075)

lri $AR1,    #0x0075
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 118 (0x0076)

lri $AR1,    #0x0076
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 119 (0x0077)

lri $AR1,    #0x0077
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 120 (0x0078)

lri $AR1,    #0x0078
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 121 (0x0079)

lri $AR1,    #0x0079
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 122 (0x007a)

lri $AR1,    #0x007a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 123 (0x007b)

lri $AR1,    #0x007b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 124 (0x007c)

lri $AR1,    #0x007c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 125 (0x007d)

lri $AR1,    #0x007d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 126 (0x007e)

lri $AR1,    #0x007e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 127 (0x007f)

lri $AR1,    #0x007f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 128 (0x0080)

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

