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

lri $AR1,    #0x5fb2
lri $IX1,    #0x8870
lri $WR1,    #0x877f
cw 0x15
call send_back  ; 59857 (0xe9d1)

lri $AR1,    #0x7bc4
lri $IX1,    #0x7922
lri $WR1,    #0x7f4b
cw 0x15
call send_back  ; 59858 (0xe9d2)

lri $AR1,    #0xef34
lri $IX1,    #0x55cc
lri $WR1,    #0xa96e
cw 0x15
call send_back  ; 59859 (0xe9d3)

lri $AR1,    #0xc9e8
lri $IX1,    #0x1dc8
lri $WR1,    #0x7567
cw 0x15
call send_back  ; 59860 (0xe9d4)

lri $AR1,    #0x8e55
lri $IX1,    #0x0fc6
lri $WR1,    #0x6f56
cw 0x15
call send_back  ; 59861 (0xe9d5)

lri $AR1,    #0x7e2f
lri $IX1,    #0xeb1e
lri $WR1,    #0x487b
cw 0x15
call send_back  ; 59862 (0xe9d6)

lri $AR1,    #0x6f71
lri $IX1,    #0xd9d2
lri $WR1,    #0x25da
cw 0x15
call send_back  ; 59863 (0xe9d7)

lri $AR1,    #0x8522
lri $IX1,    #0xad84
lri $WR1,    #0x5373
cw 0x15
call send_back  ; 59864 (0xe9d8)

lri $AR1,    #0xd280
lri $IX1,    #0x91ea
lri $WR1,    #0x643a
cw 0x15
call send_back  ; 59865 (0xe9d9)

lri $AR1,    #0x4f19
lri $IX1,    #0x7c0e
lri $WR1,    #0x3458
cw 0x15
call send_back  ; 59866 (0xe9da)

lri $AR1,    #0xf55e
lri $IX1,    #0x8e06
lri $WR1,    #0x94b5
cw 0x15
call send_back  ; 59867 (0xe9db)

lri $AR1,    #0x4d44
lri $IX1,    #0x833c
lri $WR1,    #0x7c78
cw 0x15
call send_back  ; 59868 (0xe9dc)

lri $AR1,    #0xdf90
lri $IX1,    #0x221a
lri $WR1,    #0xd673
cw 0x15
call send_back  ; 59869 (0xe9dd)

lri $AR1,    #0x7e35
lri $IX1,    #0xc430
lri $WR1,    #0xbe12
cw 0x15
call send_back  ; 59870 (0xe9de)

lri $AR1,    #0xd192
lri $IX1,    #0x668a
lri $WR1,    #0xa0ee
cw 0x15
call send_back  ; 59871 (0xe9df)

lri $AR1,    #0x91e0
lri $IX1,    #0x806c
lri $WR1,    #0x1f78
cw 0x15
call send_back  ; 59872 (0xe9e0)

lri $AR1,    #0x9f99
lri $IX1,    #0x3722
lri $WR1,    #0x90dc
cw 0x15
call send_back  ; 59873 (0xe9e1)

lri $AR1,    #0x2d2d
lri $IX1,    #0x8a06
lri $WR1,    #0x9bb8
cw 0x15
call send_back  ; 59874 (0xe9e2)

lri $AR1,    #0x3fde
lri $IX1,    #0xe28c
lri $WR1,    #0xc692
cw 0x15
call send_back  ; 59875 (0xe9e3)

lri $AR1,    #0x54fa
lri $IX1,    #0x305e
lri $WR1,    #0x98c8
cw 0x15
call send_back  ; 59876 (0xe9e4)

lri $AR1,    #0x5467
lri $IX1,    #0x8252
lri $WR1,    #0xbded
cw 0x15
call send_back  ; 59877 (0xe9e5)

lri $AR1,    #0x88a5
lri $IX1,    #0x015c
lri $WR1,    #0x7b2b
cw 0x15
call send_back  ; 59878 (0xe9e6)

lri $AR1,    #0x784a
lri $IX1,    #0x7344
lri $WR1,    #0x87be
cw 0x15
call send_back  ; 59879 (0xe9e7)

lri $AR1,    #0x9411
lri $IX1,    #0x1722
lri $WR1,    #0x5f17
cw 0x15
call send_back  ; 59880 (0xe9e8)

lri $AR1,    #0x187c
lri $IX1,    #0xe684
lri $WR1,    #0x4cb0
cw 0x15
call send_back  ; 59881 (0xe9e9)

lri $AR1,    #0x2135
lri $IX1,    #0x2a48
lri $WR1,    #0x9f25
cw 0x15
call send_back  ; 59882 (0xe9ea)

lri $AR1,    #0xa015
lri $IX1,    #0x02ee
lri $WR1,    #0x81ae
cw 0x15
call send_back  ; 59883 (0xe9eb)

lri $AR1,    #0x111b
lri $IX1,    #0x2090
lri $WR1,    #0x506f
cw 0x15
call send_back  ; 59884 (0xe9ec)

lri $AR1,    #0x4018
lri $IX1,    #0x8f1a
lri $WR1,    #0xb5cc
cw 0x15
call send_back  ; 59885 (0xe9ed)

lri $AR1,    #0xa471
lri $IX1,    #0x5022
lri $WR1,    #0xdc3c
cw 0x15
call send_back  ; 59886 (0xe9ee)

lri $AR1,    #0x1aba
lri $IX1,    #0x9bd0
lri $WR1,    #0x61b2
cw 0x15
call send_back  ; 59887 (0xe9ef)

lri $AR1,    #0x7b86
lri $IX1,    #0x2f46
lri $WR1,    #0x5f2c
cw 0x15
call send_back  ; 59888 (0xe9f0)

lri $AR1,    #0x9a2d
lri $IX1,    #0x2700
lri $WR1,    #0xa07f
cw 0x15
call send_back  ; 59889 (0xe9f1)

lri $AR1,    #0x75e1
lri $IX1,    #0xa890
lri $WR1,    #0x75da
cw 0x15
call send_back  ; 59890 (0xe9f2)

lri $AR1,    #0x3ae6
lri $IX1,    #0x2f38
lri $WR1,    #0x3a33
cw 0x15
call send_back  ; 59891 (0xe9f3)

lri $AR1,    #0x7939
lri $IX1,    #0xcbac
lri $WR1,    #0x9f08
cw 0x15
call send_back  ; 59892 (0xe9f4)

lri $AR1,    #0x9168
lri $IX1,    #0x2fa4
lri $WR1,    #0xe79c
cw 0x15
call send_back  ; 59893 (0xe9f5)

lri $AR1,    #0xa809
lri $IX1,    #0x127e
lri $WR1,    #0x5b42
cw 0x15
call send_back  ; 59894 (0xe9f6)

lri $AR1,    #0x5384
lri $IX1,    #0x7c7c
lri $WR1,    #0x37b4
cw 0x15
call send_back  ; 59895 (0xe9f7)

lri $AR1,    #0x8f91
lri $IX1,    #0xf2f2
lri $WR1,    #0xb210
cw 0x15
call send_back  ; 59896 (0xe9f8)

lri $AR1,    #0xad2d
lri $IX1,    #0x7802
lri $WR1,    #0x7e92
cw 0x15
call send_back  ; 59897 (0xe9f9)

lri $AR1,    #0xd562
lri $IX1,    #0xf520
lri $WR1,    #0xc490
cw 0x15
call send_back  ; 59898 (0xe9fa)

lri $AR1,    #0xa8b4
lri $IX1,    #0x17fa
lri $WR1,    #0xb5cd
cw 0x15
call send_back  ; 59899 (0xe9fb)

lri $AR1,    #0x6c66
lri $IX1,    #0x0610
lri $WR1,    #0x95ac
cw 0x15
call send_back  ; 59900 (0xe9fc)

lri $AR1,    #0x7298
lri $IX1,    #0xb39c
lri $WR1,    #0xb666
cw 0x15
call send_back  ; 59901 (0xe9fd)

lri $AR1,    #0x5961
lri $IX1,    #0x3ef0
lri $WR1,    #0x2fb7
cw 0x15
call send_back  ; 59902 (0xe9fe)

lri $AR1,    #0xc0cb
lri $IX1,    #0x9216
lri $WR1,    #0xb42f
cw 0x15
call send_back  ; 59903 (0xe9ff)

lri $AR1,    #0x0f04
lri $IX1,    #0xd8c6
lri $WR1,    #0x4f9c
cw 0x15
call send_back  ; 59904 (0xea00)

lri $AR1,    #0x257d
lri $IX1,    #0x317a
lri $WR1,    #0x62b4
cw 0x15
call send_back  ; 59905 (0xea01)

lri $AR1,    #0x696d
lri $IX1,    #0x84b2
lri $WR1,    #0x3d82
cw 0x15
call send_back  ; 59906 (0xea02)

lri $AR1,    #0x155e
lri $IX1,    #0xbe3e
lri $WR1,    #0x2ba4
cw 0x15
call send_back  ; 59907 (0xea03)

lri $AR1,    #0xd133
lri $IX1,    #0xe09c
lri $WR1,    #0x7af7
cw 0x15
call send_back  ; 59908 (0xea04)

lri $AR1,    #0x696a
lri $IX1,    #0xb330
lri $WR1,    #0xdeb4
cw 0x15
call send_back  ; 59909 (0xea05)

lri $AR1,    #0x8deb
lri $IX1,    #0x4074
lri $WR1,    #0x6e94
cw 0x15
call send_back  ; 59910 (0xea06)

lri $AR1,    #0xa432
lri $IX1,    #0x19ea
lri $WR1,    #0xc30c
cw 0x15
call send_back  ; 59911 (0xea07)

lri $AR1,    #0xd031
lri $IX1,    #0x83e2
lri $WR1,    #0xb52c
cw 0x15
call send_back  ; 59912 (0xea08)

lri $AR1,    #0xc2a2
lri $IX1,    #0x63d6
lri $WR1,    #0x7231
cw 0x15
call send_back  ; 59913 (0xea09)

lri $AR1,    #0xfb32
lri $IX1,    #0x3088
lri $WR1,    #0xc069
cw 0x15
call send_back  ; 59914 (0xea0a)

lri $AR1,    #0x6048
lri $IX1,    #0x5396
lri $WR1,    #0x6463
cw 0x15
call send_back  ; 59915 (0xea0b)

lri $AR1,    #0x35b3
lri $IX1,    #0x88ae
lri $WR1,    #0x6b01
cw 0x15
call send_back  ; 59916 (0xea0c)

lri $AR1,    #0x7721
lri $IX1,    #0xef0e
lri $WR1,    #0x9690
cw 0x15
call send_back  ; 59917 (0xea0d)

lri $AR1,    #0xca98
lri $IX1,    #0xd688
lri $WR1,    #0x2a54
cw 0x15
call send_back  ; 59918 (0xea0e)

lri $AR1,    #0x82d9
lri $IX1,    #0xf1c8
lri $WR1,    #0x31b7
cw 0x15
call send_back  ; 59919 (0xea0f)

lri $AR1,    #0x60ea
lri $IX1,    #0xa3e2
lri $WR1,    #0x8597
cw 0x15
call send_back  ; 59920 (0xea10)

lri $AR1,    #0x4f9b
lri $IX1,    #0xb802
lri $WR1,    #0x1bd0
cw 0x15
call send_back  ; 59921 (0xea11)

lri $AR1,    #0x9364
lri $IX1,    #0x165c
lri $WR1,    #0x7a80
cw 0x15
call send_back  ; 59922 (0xea12)

lri $AR1,    #0xbc55
lri $IX1,    #0x1a0e
lri $WR1,    #0x5a33
cw 0x15
call send_back  ; 59923 (0xea13)

lri $AR1,    #0x6f79
lri $IX1,    #0x2824
lri $WR1,    #0x7765
cw 0x15
call send_back  ; 59924 (0xea14)

lri $AR1,    #0x387d
lri $IX1,    #0x3062
lri $WR1,    #0xad84
cw 0x15
call send_back  ; 59925 (0xea15)

lri $AR1,    #0x63db
lri $IX1,    #0xf52c
lri $WR1,    #0x92f0
cw 0x15
call send_back  ; 59926 (0xea16)

lri $AR1,    #0xc563
lri $IX1,    #0x77fe
lri $WR1,    #0x4f18
cw 0x15
call send_back  ; 59927 (0xea17)

lri $AR1,    #0xa680
lri $IX1,    #0xd4e4
lri $WR1,    #0xa93a
cw 0x15
call send_back  ; 59928 (0xea18)

lri $AR1,    #0xc2ec
lri $IX1,    #0x4f6c
lri $WR1,    #0x37db
cw 0x15
call send_back  ; 59929 (0xea19)

lri $AR1,    #0x9a34
lri $IX1,    #0x786e
lri $WR1,    #0x8680
cw 0x15
call send_back  ; 59930 (0xea1a)

lri $AR1,    #0x4fe4
lri $IX1,    #0x4436
lri $WR1,    #0x58bf
cw 0x15
call send_back  ; 59931 (0xea1b)

lri $AR1,    #0x3b96
lri $IX1,    #0xc55a
lri $WR1,    #0xc73e
cw 0x15
call send_back  ; 59932 (0xea1c)

lri $AR1,    #0x85c2
lri $IX1,    #0x28de
lri $WR1,    #0xac9a
cw 0x15
call send_back  ; 59933 (0xea1d)

lri $AR1,    #0x9da5
lri $IX1,    #0xa4dc
lri $WR1,    #0x95e1
cw 0x15
call send_back  ; 59934 (0xea1e)

lri $AR1,    #0x57f1
lri $IX1,    #0x6b5a
lri $WR1,    #0x8b99
cw 0x15
call send_back  ; 59935 (0xea1f)

lri $AR1,    #0x7dc8
lri $IX1,    #0x7f86
lri $WR1,    #0x6def
cw 0x15
call send_back  ; 59936 (0xea20)

lri $AR1,    #0x5e96
lri $IX1,    #0xa404
lri $WR1,    #0xa81e
cw 0x15
call send_back  ; 59937 (0xea21)

lri $AR1,    #0x7755
lri $IX1,    #0x9d7c
lri $WR1,    #0x8ca2
cw 0x15
call send_back  ; 59938 (0xea22)

lri $AR1,    #0xd4da
lri $IX1,    #0xd51a
lri $WR1,    #0x9d30
cw 0x15
call send_back  ; 59939 (0xea23)

lri $AR1,    #0x5e9b
lri $IX1,    #0x2330
lri $WR1,    #0x3723
cw 0x15
call send_back  ; 59940 (0xea24)

lri $AR1,    #0x92b2
lri $IX1,    #0x52ae
lri $WR1,    #0x765d
cw 0x15
call send_back  ; 59941 (0xea25)

lri $AR1,    #0x4b68
lri $IX1,    #0xe298
lri $WR1,    #0x7e25
cw 0x15
call send_back  ; 59942 (0xea26)

lri $AR1,    #0xca27
lri $IX1,    #0xcb28
lri $WR1,    #0x9925
cw 0x15
call send_back  ; 59943 (0xea27)

lri $AR1,    #0x5b10
lri $IX1,    #0xb8e6
lri $WR1,    #0xa70d
cw 0x15
call send_back  ; 59944 (0xea28)

lri $AR1,    #0xd01b
lri $IX1,    #0x6838
lri $WR1,    #0x77e2
cw 0x15
call send_back  ; 59945 (0xea29)

lri $AR1,    #0x31f8
lri $IX1,    #0xb0c4
lri $WR1,    #0x62a3
cw 0x15
call send_back  ; 59946 (0xea2a)

lri $AR1,    #0xb897
lri $IX1,    #0x8048
lri $WR1,    #0x7631
cw 0x15
call send_back  ; 59947 (0xea2b)

lri $AR1,    #0xc49c
lri $IX1,    #0xa102
lri $WR1,    #0x7932
cw 0x15
call send_back  ; 59948 (0xea2c)

lri $AR1,    #0x0e8d
lri $IX1,    #0xd080
lri $WR1,    #0xe6d5
cw 0x15
call send_back  ; 59949 (0xea2d)

lri $AR1,    #0x7017
lri $IX1,    #0x7fdc
lri $WR1,    #0x9431
cw 0x15
call send_back  ; 59950 (0xea2e)

lri $AR1,    #0xef24
lri $IX1,    #0xb73a
lri $WR1,    #0x8b26
cw 0x15
call send_back  ; 59951 (0xea2f)

lri $AR1,    #0x6a2d
lri $IX1,    #0x22a4
lri $WR1,    #0xcd70
cw 0x15
call send_back  ; 59952 (0xea30)

lri $AR1,    #0xd07d
lri $IX1,    #0x66f4
lri $WR1,    #0x7bf2
cw 0x15
call send_back  ; 59953 (0xea31)

lri $AR1,    #0x90cf
lri $IX1,    #0xa202
lri $WR1,    #0x2bba
cw 0x15
call send_back  ; 59954 (0xea32)

lri $AR1,    #0xbbfe
lri $IX1,    #0x89ce
lri $WR1,    #0xe3eb
cw 0x15
call send_back  ; 59955 (0xea33)

lri $AR1,    #0xa129
lri $IX1,    #0x1ab0
lri $WR1,    #0x3501
cw 0x15
call send_back  ; 59956 (0xea34)

lri $AR1,    #0x4417
lri $IX1,    #0x4d82
lri $WR1,    #0x738e
cw 0x15
call send_back  ; 59957 (0xea35)

lri $AR1,    #0x5e24
lri $IX1,    #0x02a6
lri $WR1,    #0x3e02
cw 0x15
call send_back  ; 59958 (0xea36)

lri $AR1,    #0x7d8c
lri $IX1,    #0x4fda
lri $WR1,    #0x7685
cw 0x15
call send_back  ; 59959 (0xea37)

lri $AR1,    #0x2e6f
lri $IX1,    #0xcada
lri $WR1,    #0x9f73
cw 0x15
call send_back  ; 59960 (0xea38)

lri $AR1,    #0x443f
lri $IX1,    #0x63a6
lri $WR1,    #0x7296
cw 0x15
call send_back  ; 59961 (0xea39)

lri $AR1,    #0xba0d
lri $IX1,    #0x0578
lri $WR1,    #0x78a4
cw 0x15
call send_back  ; 59962 (0xea3a)

lri $AR1,    #0x9370
lri $IX1,    #0xa63a
lri $WR1,    #0x380a
cw 0x15
call send_back  ; 59963 (0xea3b)

lri $AR1,    #0x0f56
lri $IX1,    #0xc898
lri $WR1,    #0x27ad
cw 0x15
call send_back  ; 59964 (0xea3c)

lri $AR1,    #0x3991
lri $IX1,    #0xdd62
lri $WR1,    #0x4b91
cw 0x15
call send_back  ; 59965 (0xea3d)

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