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

lri $AR1,    #0x4000
lri $IX1,    #0x9480
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38017 (0x9481)

lri $AR1,    #0x4000
lri $IX1,    #0x9481
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38018 (0x9482)

lri $AR1,    #0x4000
lri $IX1,    #0x9482
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38019 (0x9483)

lri $AR1,    #0x4000
lri $IX1,    #0x9483
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38020 (0x9484)

lri $AR1,    #0x4000
lri $IX1,    #0x9484
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38021 (0x9485)

lri $AR1,    #0x4000
lri $IX1,    #0x9485
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38022 (0x9486)

lri $AR1,    #0x4000
lri $IX1,    #0x9486
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38023 (0x9487)

lri $AR1,    #0x4000
lri $IX1,    #0x9487
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38024 (0x9488)

lri $AR1,    #0x4000
lri $IX1,    #0x9488
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38025 (0x9489)

lri $AR1,    #0x4000
lri $IX1,    #0x9489
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38026 (0x948a)

lri $AR1,    #0x4000
lri $IX1,    #0x948a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38027 (0x948b)

lri $AR1,    #0x4000
lri $IX1,    #0x948b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38028 (0x948c)

lri $AR1,    #0x4000
lri $IX1,    #0x948c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38029 (0x948d)

lri $AR1,    #0x4000
lri $IX1,    #0x948d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38030 (0x948e)

lri $AR1,    #0x4000
lri $IX1,    #0x948e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38031 (0x948f)

lri $AR1,    #0x4000
lri $IX1,    #0x948f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38032 (0x9490)

lri $AR1,    #0x4000
lri $IX1,    #0x9490
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38033 (0x9491)

lri $AR1,    #0x4000
lri $IX1,    #0x9491
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38034 (0x9492)

lri $AR1,    #0x4000
lri $IX1,    #0x9492
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38035 (0x9493)

lri $AR1,    #0x4000
lri $IX1,    #0x9493
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38036 (0x9494)

lri $AR1,    #0x4000
lri $IX1,    #0x9494
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38037 (0x9495)

lri $AR1,    #0x4000
lri $IX1,    #0x9495
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38038 (0x9496)

lri $AR1,    #0x4000
lri $IX1,    #0x9496
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38039 (0x9497)

lri $AR1,    #0x4000
lri $IX1,    #0x9497
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38040 (0x9498)

lri $AR1,    #0x4000
lri $IX1,    #0x9498
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38041 (0x9499)

lri $AR1,    #0x4000
lri $IX1,    #0x9499
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38042 (0x949a)

lri $AR1,    #0x4000
lri $IX1,    #0x949a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38043 (0x949b)

lri $AR1,    #0x4000
lri $IX1,    #0x949b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38044 (0x949c)

lri $AR1,    #0x4000
lri $IX1,    #0x949c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38045 (0x949d)

lri $AR1,    #0x4000
lri $IX1,    #0x949d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38046 (0x949e)

lri $AR1,    #0x4000
lri $IX1,    #0x949e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38047 (0x949f)

lri $AR1,    #0x4000
lri $IX1,    #0x949f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38048 (0x94a0)

lri $AR1,    #0x4000
lri $IX1,    #0x94a0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38049 (0x94a1)

lri $AR1,    #0x4000
lri $IX1,    #0x94a1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38050 (0x94a2)

lri $AR1,    #0x4000
lri $IX1,    #0x94a2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38051 (0x94a3)

lri $AR1,    #0x4000
lri $IX1,    #0x94a3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38052 (0x94a4)

lri $AR1,    #0x4000
lri $IX1,    #0x94a4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38053 (0x94a5)

lri $AR1,    #0x4000
lri $IX1,    #0x94a5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38054 (0x94a6)

lri $AR1,    #0x4000
lri $IX1,    #0x94a6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38055 (0x94a7)

lri $AR1,    #0x4000
lri $IX1,    #0x94a7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38056 (0x94a8)

lri $AR1,    #0x4000
lri $IX1,    #0x94a8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38057 (0x94a9)

lri $AR1,    #0x4000
lri $IX1,    #0x94a9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38058 (0x94aa)

lri $AR1,    #0x4000
lri $IX1,    #0x94aa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38059 (0x94ab)

lri $AR1,    #0x4000
lri $IX1,    #0x94ab
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38060 (0x94ac)

lri $AR1,    #0x4000
lri $IX1,    #0x94ac
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38061 (0x94ad)

lri $AR1,    #0x4000
lri $IX1,    #0x94ad
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38062 (0x94ae)

lri $AR1,    #0x4000
lri $IX1,    #0x94ae
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38063 (0x94af)

lri $AR1,    #0x4000
lri $IX1,    #0x94af
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38064 (0x94b0)

lri $AR1,    #0x4000
lri $IX1,    #0x94b0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38065 (0x94b1)

lri $AR1,    #0x4000
lri $IX1,    #0x94b1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38066 (0x94b2)

lri $AR1,    #0x4000
lri $IX1,    #0x94b2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38067 (0x94b3)

lri $AR1,    #0x4000
lri $IX1,    #0x94b3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38068 (0x94b4)

lri $AR1,    #0x4000
lri $IX1,    #0x94b4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38069 (0x94b5)

lri $AR1,    #0x4000
lri $IX1,    #0x94b5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38070 (0x94b6)

lri $AR1,    #0x4000
lri $IX1,    #0x94b6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38071 (0x94b7)

lri $AR1,    #0x4000
lri $IX1,    #0x94b7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38072 (0x94b8)

lri $AR1,    #0x4000
lri $IX1,    #0x94b8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38073 (0x94b9)

lri $AR1,    #0x4000
lri $IX1,    #0x94b9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38074 (0x94ba)

lri $AR1,    #0x4000
lri $IX1,    #0x94ba
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38075 (0x94bb)

lri $AR1,    #0x4000
lri $IX1,    #0x94bb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38076 (0x94bc)

lri $AR1,    #0x4000
lri $IX1,    #0x94bc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38077 (0x94bd)

lri $AR1,    #0x4000
lri $IX1,    #0x94bd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38078 (0x94be)

lri $AR1,    #0x4000
lri $IX1,    #0x94be
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38079 (0x94bf)

lri $AR1,    #0x4000
lri $IX1,    #0x94bf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38080 (0x94c0)

lri $AR1,    #0x4000
lri $IX1,    #0x94c0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38081 (0x94c1)

lri $AR1,    #0x4000
lri $IX1,    #0x94c1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38082 (0x94c2)

lri $AR1,    #0x4000
lri $IX1,    #0x94c2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38083 (0x94c3)

lri $AR1,    #0x4000
lri $IX1,    #0x94c3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38084 (0x94c4)

lri $AR1,    #0x4000
lri $IX1,    #0x94c4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38085 (0x94c5)

lri $AR1,    #0x4000
lri $IX1,    #0x94c5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38086 (0x94c6)

lri $AR1,    #0x4000
lri $IX1,    #0x94c6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38087 (0x94c7)

lri $AR1,    #0x4000
lri $IX1,    #0x94c7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38088 (0x94c8)

lri $AR1,    #0x4000
lri $IX1,    #0x94c8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38089 (0x94c9)

lri $AR1,    #0x4000
lri $IX1,    #0x94c9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38090 (0x94ca)

lri $AR1,    #0x4000
lri $IX1,    #0x94ca
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38091 (0x94cb)

lri $AR1,    #0x4000
lri $IX1,    #0x94cb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38092 (0x94cc)

lri $AR1,    #0x4000
lri $IX1,    #0x94cc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38093 (0x94cd)

lri $AR1,    #0x4000
lri $IX1,    #0x94cd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38094 (0x94ce)

lri $AR1,    #0x4000
lri $IX1,    #0x94ce
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38095 (0x94cf)

lri $AR1,    #0x4000
lri $IX1,    #0x94cf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38096 (0x94d0)

lri $AR1,    #0x4000
lri $IX1,    #0x94d0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38097 (0x94d1)

lri $AR1,    #0x4000
lri $IX1,    #0x94d1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38098 (0x94d2)

lri $AR1,    #0x4000
lri $IX1,    #0x94d2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38099 (0x94d3)

lri $AR1,    #0x4000
lri $IX1,    #0x94d3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38100 (0x94d4)

lri $AR1,    #0x4000
lri $IX1,    #0x94d4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38101 (0x94d5)

lri $AR1,    #0x4000
lri $IX1,    #0x94d5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38102 (0x94d6)

lri $AR1,    #0x4000
lri $IX1,    #0x94d6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38103 (0x94d7)

lri $AR1,    #0x4000
lri $IX1,    #0x94d7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38104 (0x94d8)

lri $AR1,    #0x4000
lri $IX1,    #0x94d8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38105 (0x94d9)

lri $AR1,    #0x4000
lri $IX1,    #0x94d9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38106 (0x94da)

lri $AR1,    #0x4000
lri $IX1,    #0x94da
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38107 (0x94db)

lri $AR1,    #0x4000
lri $IX1,    #0x94db
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38108 (0x94dc)

lri $AR1,    #0x4000
lri $IX1,    #0x94dc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38109 (0x94dd)

lri $AR1,    #0x4000
lri $IX1,    #0x94dd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38110 (0x94de)

lri $AR1,    #0x4000
lri $IX1,    #0x94de
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38111 (0x94df)

lri $AR1,    #0x4000
lri $IX1,    #0x94df
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38112 (0x94e0)

lri $AR1,    #0x4000
lri $IX1,    #0x94e0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38113 (0x94e1)

lri $AR1,    #0x4000
lri $IX1,    #0x94e1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38114 (0x94e2)

lri $AR1,    #0x4000
lri $IX1,    #0x94e2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38115 (0x94e3)

lri $AR1,    #0x4000
lri $IX1,    #0x94e3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38116 (0x94e4)

lri $AR1,    #0x4000
lri $IX1,    #0x94e4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38117 (0x94e5)

lri $AR1,    #0x4000
lri $IX1,    #0x94e5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38118 (0x94e6)

lri $AR1,    #0x4000
lri $IX1,    #0x94e6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38119 (0x94e7)

lri $AR1,    #0x4000
lri $IX1,    #0x94e7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38120 (0x94e8)

lri $AR1,    #0x4000
lri $IX1,    #0x94e8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38121 (0x94e9)

lri $AR1,    #0x4000
lri $IX1,    #0x94e9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38122 (0x94ea)

lri $AR1,    #0x4000
lri $IX1,    #0x94ea
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38123 (0x94eb)

lri $AR1,    #0x4000
lri $IX1,    #0x94eb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38124 (0x94ec)

lri $AR1,    #0x4000
lri $IX1,    #0x94ec
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38125 (0x94ed)

lri $AR1,    #0x4000
lri $IX1,    #0x94ed
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38126 (0x94ee)

lri $AR1,    #0x4000
lri $IX1,    #0x94ee
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38127 (0x94ef)

lri $AR1,    #0x4000
lri $IX1,    #0x94ef
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38128 (0x94f0)

lri $AR1,    #0x4000
lri $IX1,    #0x94f0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38129 (0x94f1)

lri $AR1,    #0x4000
lri $IX1,    #0x94f1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38130 (0x94f2)

lri $AR1,    #0x4000
lri $IX1,    #0x94f2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38131 (0x94f3)

lri $AR1,    #0x4000
lri $IX1,    #0x94f3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38132 (0x94f4)

lri $AR1,    #0x4000
lri $IX1,    #0x94f4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38133 (0x94f5)

lri $AR1,    #0x4000
lri $IX1,    #0x94f5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38134 (0x94f6)

lri $AR1,    #0x4000
lri $IX1,    #0x94f6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38135 (0x94f7)

lri $AR1,    #0x4000
lri $IX1,    #0x94f7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38136 (0x94f8)

lri $AR1,    #0x4000
lri $IX1,    #0x94f8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38137 (0x94f9)

lri $AR1,    #0x4000
lri $IX1,    #0x94f9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38138 (0x94fa)

lri $AR1,    #0x4000
lri $IX1,    #0x94fa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38139 (0x94fb)

lri $AR1,    #0x4000
lri $IX1,    #0x94fb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38140 (0x94fc)

lri $AR1,    #0x4000
lri $IX1,    #0x94fc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38141 (0x94fd)

lri $AR1,    #0x4000
lri $IX1,    #0x94fd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38142 (0x94fe)

lri $AR1,    #0x4000
lri $IX1,    #0x94fe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38143 (0x94ff)

lri $AR1,    #0x4000
lri $IX1,    #0x94ff
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 38144 (0x9500)

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

