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

lri $AR1,    #0x4aac
lri $IX1,    #0x502a
lri $WR1,    #0x8512
cw 0x15
call send_back  ; 58874 (0xe5fa)

lri $AR1,    #0x8f54
lri $IX1,    #0xadfa
lri $WR1,    #0xe02e
cw 0x15
call send_back  ; 58875 (0xe5fb)

lri $AR1,    #0xbe58
lri $IX1,    #0xf52a
lri $WR1,    #0x9c5b
cw 0x15
call send_back  ; 58876 (0xe5fc)

lri $AR1,    #0xae79
lri $IX1,    #0xb054
lri $WR1,    #0x8eed
cw 0x15
call send_back  ; 58877 (0xe5fd)

lri $AR1,    #0xa96c
lri $IX1,    #0x352a
lri $WR1,    #0xb5c3
cw 0x15
call send_back  ; 58878 (0xe5fe)

lri $AR1,    #0x89de
lri $IX1,    #0x1e14
lri $WR1,    #0x148b
cw 0x15
call send_back  ; 58879 (0xe5ff)

lri $AR1,    #0xa799
lri $IX1,    #0xd830
lri $WR1,    #0x3b34
cw 0x15
call send_back  ; 58880 (0xe600)

lri $AR1,    #0x74b1
lri $IX1,    #0xac50
lri $WR1,    #0xc995
cw 0x15
call send_back  ; 58881 (0xe601)

lri $AR1,    #0x2dfb
lri $IX1,    #0x2e5a
lri $WR1,    #0xd1d7
cw 0x15
call send_back  ; 58882 (0xe602)

lri $AR1,    #0x94a2
lri $IX1,    #0x4e7c
lri $WR1,    #0x6cba
cw 0x15
call send_back  ; 58883 (0xe603)

lri $AR1,    #0xae29
lri $IX1,    #0x8494
lri $WR1,    #0x8839
cw 0x15
call send_back  ; 58884 (0xe604)

lri $AR1,    #0x63b0
lri $IX1,    #0xd664
lri $WR1,    #0xd2ae
cw 0x15
call send_back  ; 58885 (0xe605)

lri $AR1,    #0x68ba
lri $IX1,    #0xedc8
lri $WR1,    #0x81f3
cw 0x15
call send_back  ; 58886 (0xe606)

lri $AR1,    #0x7568
lri $IX1,    #0x34a6
lri $WR1,    #0x779c
cw 0x15
call send_back  ; 58887 (0xe607)

lri $AR1,    #0x7749
lri $IX1,    #0x18a6
lri $WR1,    #0x48d8
cw 0x15
call send_back  ; 58888 (0xe608)

lri $AR1,    #0x47b9
lri $IX1,    #0x51a6
lri $WR1,    #0x5a06
cw 0x15
call send_back  ; 58889 (0xe609)

lri $AR1,    #0x1604
lri $IX1,    #0x69ca
lri $WR1,    #0xeb92
cw 0x15
call send_back  ; 58890 (0xe60a)

lri $AR1,    #0x6730
lri $IX1,    #0xf710
lri $WR1,    #0x872c
cw 0x15
call send_back  ; 58891 (0xe60b)

lri $AR1,    #0xb4ae
lri $IX1,    #0x1280
lri $WR1,    #0x91d7
cw 0x15
call send_back  ; 58892 (0xe60c)

lri $AR1,    #0x2eca
lri $IX1,    #0xc1bc
lri $WR1,    #0xc0ff
cw 0x15
call send_back  ; 58893 (0xe60d)

lri $AR1,    #0x572b
lri $IX1,    #0x5bfa
lri $WR1,    #0xae07
cw 0x15
call send_back  ; 58894 (0xe60e)

lri $AR1,    #0x6b33
lri $IX1,    #0x9440
lri $WR1,    #0xa57b
cw 0x15
call send_back  ; 58895 (0xe60f)

lri $AR1,    #0x4d86
lri $IX1,    #0xdf02
lri $WR1,    #0x7458
cw 0x15
call send_back  ; 58896 (0xe610)

lri $AR1,    #0x2996
lri $IX1,    #0x81ce
lri $WR1,    #0xbf99
cw 0x15
call send_back  ; 58897 (0xe611)

lri $AR1,    #0x4b7a
lri $IX1,    #0xe03a
lri $WR1,    #0x3f7c
cw 0x15
call send_back  ; 58898 (0xe612)

lri $AR1,    #0x79e0
lri $IX1,    #0xa9c4
lri $WR1,    #0x69b0
cw 0x15
call send_back  ; 58899 (0xe613)

lri $AR1,    #0x6778
lri $IX1,    #0x88d2
lri $WR1,    #0x8acf
cw 0x15
call send_back  ; 58900 (0xe614)

lri $AR1,    #0x6c8b
lri $IX1,    #0xfb8e
lri $WR1,    #0x6967
cw 0x15
call send_back  ; 58901 (0xe615)

lri $AR1,    #0x8932
lri $IX1,    #0x33ba
lri $WR1,    #0xa9f7
cw 0x15
call send_back  ; 58902 (0xe616)

lri $AR1,    #0x93e1
lri $IX1,    #0x5b32
lri $WR1,    #0xad10
cw 0x15
call send_back  ; 58903 (0xe617)

lri $AR1,    #0x4fa1
lri $IX1,    #0x8760
lri $WR1,    #0x660f
cw 0x15
call send_back  ; 58904 (0xe618)

lri $AR1,    #0x50ca
lri $IX1,    #0x1e36
lri $WR1,    #0x9298
cw 0x15
call send_back  ; 58905 (0xe619)

lri $AR1,    #0x768e
lri $IX1,    #0x93e8
lri $WR1,    #0x2851
cw 0x15
call send_back  ; 58906 (0xe61a)

lri $AR1,    #0x3314
lri $IX1,    #0x5926
lri $WR1,    #0x9ff0
cw 0x15
call send_back  ; 58907 (0xe61b)

lri $AR1,    #0x4398
lri $IX1,    #0xade4
lri $WR1,    #0xda3c
cw 0x15
call send_back  ; 58908 (0xe61c)

lri $AR1,    #0xb534
lri $IX1,    #0xf586
lri $WR1,    #0x94f1
cw 0x15
call send_back  ; 58909 (0xe61d)

lri $AR1,    #0x82c0
lri $IX1,    #0x3d86
lri $WR1,    #0xa33d
cw 0x15
call send_back  ; 58910 (0xe61e)

lri $AR1,    #0x9b93
lri $IX1,    #0x0848
lri $WR1,    #0x3ec4
cw 0x15
call send_back  ; 58911 (0xe61f)

lri $AR1,    #0x9a6b
lri $IX1,    #0x3a5e
lri $WR1,    #0xabd7
cw 0x15
call send_back  ; 58912 (0xe620)

lri $AR1,    #0x3f58
lri $IX1,    #0x60ca
lri $WR1,    #0x74cf
cw 0x15
call send_back  ; 58913 (0xe621)

lri $AR1,    #0xbef2
lri $IX1,    #0x8b92
lri $WR1,    #0x8e48
cw 0x15
call send_back  ; 58914 (0xe622)

lri $AR1,    #0x8cae
lri $IX1,    #0xc846
lri $WR1,    #0xa716
cw 0x15
call send_back  ; 58915 (0xe623)

lri $AR1,    #0x4da2
lri $IX1,    #0x0496
lri $WR1,    #0x9cb6
cw 0x15
call send_back  ; 58916 (0xe624)

lri $AR1,    #0x7c86
lri $IX1,    #0xe9d2
lri $WR1,    #0xe627
cw 0x15
call send_back  ; 58917 (0xe625)

lri $AR1,    #0x5747
lri $IX1,    #0x365c
lri $WR1,    #0xa4d3
cw 0x15
call send_back  ; 58918 (0xe626)

lri $AR1,    #0x51ec
lri $IX1,    #0x5ad4
lri $WR1,    #0xcc85
cw 0x15
call send_back  ; 58919 (0xe627)

lri $AR1,    #0x6238
lri $IX1,    #0xcd1a
lri $WR1,    #0x5909
cw 0x15
call send_back  ; 58920 (0xe628)

lri $AR1,    #0x62c2
lri $IX1,    #0xbbf8
lri $WR1,    #0xb187
cw 0x15
call send_back  ; 58921 (0xe629)

lri $AR1,    #0x6bda
lri $IX1,    #0xb276
lri $WR1,    #0x871c
cw 0x15
call send_back  ; 58922 (0xe62a)

lri $AR1,    #0x340f
lri $IX1,    #0x6ab0
lri $WR1,    #0x8dca
cw 0x15
call send_back  ; 58923 (0xe62b)

lri $AR1,    #0x31a6
lri $IX1,    #0xac44
lri $WR1,    #0xc458
cw 0x15
call send_back  ; 58924 (0xe62c)

lri $AR1,    #0x31c6
lri $IX1,    #0xbb20
lri $WR1,    #0x7913
cw 0x15
call send_back  ; 58925 (0xe62d)

lri $AR1,    #0xc9ba
lri $IX1,    #0xafbc
lri $WR1,    #0xb734
cw 0x15
call send_back  ; 58926 (0xe62e)

lri $AR1,    #0x4a0e
lri $IX1,    #0x32a0
lri $WR1,    #0xa9b9
cw 0x15
call send_back  ; 58927 (0xe62f)

lri $AR1,    #0x92d9
lri $IX1,    #0xa134
lri $WR1,    #0xa680
cw 0x15
call send_back  ; 58928 (0xe630)

lri $AR1,    #0xb408
lri $IX1,    #0xbab0
lri $WR1,    #0xdd8b
cw 0x15
call send_back  ; 58929 (0xe631)

lri $AR1,    #0x83f5
lri $IX1,    #0xb852
lri $WR1,    #0xf607
cw 0x15
call send_back  ; 58930 (0xe632)

lri $AR1,    #0xaa1a
lri $IX1,    #0x4472
lri $WR1,    #0x143a
cw 0x15
call send_back  ; 58931 (0xe633)

lri $AR1,    #0x6338
lri $IX1,    #0x40ce
lri $WR1,    #0x38bb
cw 0x15
call send_back  ; 58932 (0xe634)

lri $AR1,    #0x5fb3
lri $IX1,    #0xd49e
lri $WR1,    #0x8341
cw 0x15
call send_back  ; 58933 (0xe635)

lri $AR1,    #0x6c8b
lri $IX1,    #0xefa4
lri $WR1,    #0x805a
cw 0x15
call send_back  ; 58934 (0xe636)

lri $AR1,    #0x7a9a
lri $IX1,    #0x6ffc
lri $WR1,    #0xab4d
cw 0x15
call send_back  ; 58935 (0xe637)

lri $AR1,    #0x6fa0
lri $IX1,    #0x84c6
lri $WR1,    #0x1296
cw 0x15
call send_back  ; 58936 (0xe638)

lri $AR1,    #0xd7ae
lri $IX1,    #0xe060
lri $WR1,    #0x7723
cw 0x15
call send_back  ; 58937 (0xe639)

lri $AR1,    #0x6d77
lri $IX1,    #0xf164
lri $WR1,    #0xabc4
cw 0x15
call send_back  ; 58938 (0xe63a)

lri $AR1,    #0xe330
lri $IX1,    #0xca1c
lri $WR1,    #0x4c0c
cw 0x15
call send_back  ; 58939 (0xe63b)

lri $AR1,    #0xbd67
lri $IX1,    #0xba92
lri $WR1,    #0x76fb
cw 0x15
call send_back  ; 58940 (0xe63c)

lri $AR1,    #0xcc91
lri $IX1,    #0x09fa
lri $WR1,    #0x73b8
cw 0x15
call send_back  ; 58941 (0xe63d)

lri $AR1,    #0xc1ab
lri $IX1,    #0xd08e
lri $WR1,    #0x63bc
cw 0x15
call send_back  ; 58942 (0xe63e)

lri $AR1,    #0xddb4
lri $IX1,    #0xd3b6
lri $WR1,    #0x47a8
cw 0x15
call send_back  ; 58943 (0xe63f)

lri $AR1,    #0x335f
lri $IX1,    #0x9272
lri $WR1,    #0x8126
cw 0x15
call send_back  ; 58944 (0xe640)

lri $AR1,    #0xbdb4
lri $IX1,    #0x88f4
lri $WR1,    #0x861b
cw 0x15
call send_back  ; 58945 (0xe641)

lri $AR1,    #0x8e11
lri $IX1,    #0x3668
lri $WR1,    #0x868e
cw 0x15
call send_back  ; 58946 (0xe642)

lri $AR1,    #0x6735
lri $IX1,    #0xc0b8
lri $WR1,    #0xb86b
cw 0x15
call send_back  ; 58947 (0xe643)

lri $AR1,    #0xa2ca
lri $IX1,    #0x4e6c
lri $WR1,    #0x31af
cw 0x15
call send_back  ; 58948 (0xe644)

lri $AR1,    #0x9a22
lri $IX1,    #0x7760
lri $WR1,    #0x9302
cw 0x15
call send_back  ; 58949 (0xe645)

lri $AR1,    #0x5a8c
lri $IX1,    #0xa17c
lri $WR1,    #0xa259
cw 0x15
call send_back  ; 58950 (0xe646)

lri $AR1,    #0x90fb
lri $IX1,    #0xdf1a
lri $WR1,    #0xb6b6
cw 0x15
call send_back  ; 58951 (0xe647)

lri $AR1,    #0xb067
lri $IX1,    #0x1154
lri $WR1,    #0x5b88
cw 0x15
call send_back  ; 58952 (0xe648)

lri $AR1,    #0xc19e
lri $IX1,    #0xc8da
lri $WR1,    #0x3bbb
cw 0x15
call send_back  ; 58953 (0xe649)

lri $AR1,    #0x6af6
lri $IX1,    #0xc4a0
lri $WR1,    #0x921b
cw 0x15
call send_back  ; 58954 (0xe64a)

lri $AR1,    #0xf189
lri $IX1,    #0x1dd8
lri $WR1,    #0x6e03
cw 0x15
call send_back  ; 58955 (0xe64b)

lri $AR1,    #0x9d6d
lri $IX1,    #0x4dbc
lri $WR1,    #0x70f5
cw 0x15
call send_back  ; 58956 (0xe64c)

lri $AR1,    #0x65a6
lri $IX1,    #0x6182
lri $WR1,    #0xa32b
cw 0x15
call send_back  ; 58957 (0xe64d)

lri $AR1,    #0x7821
lri $IX1,    #0x05ec
lri $WR1,    #0x7aa7
cw 0x15
call send_back  ; 58958 (0xe64e)

lri $AR1,    #0x7594
lri $IX1,    #0xb3f8
lri $WR1,    #0x91e1
cw 0x15
call send_back  ; 58959 (0xe64f)

lri $AR1,    #0x708c
lri $IX1,    #0x5508
lri $WR1,    #0xb097
cw 0x15
call send_back  ; 58960 (0xe650)

lri $AR1,    #0xca6d
lri $IX1,    #0x4d02
lri $WR1,    #0x92ce
cw 0x15
call send_back  ; 58961 (0xe651)

lri $AR1,    #0xc8d7
lri $IX1,    #0x1dc6
lri $WR1,    #0xa7a8
cw 0x15
call send_back  ; 58962 (0xe652)

lri $AR1,    #0x910f
lri $IX1,    #0xe78a
lri $WR1,    #0xb2fc
cw 0x15
call send_back  ; 58963 (0xe653)

lri $AR1,    #0x7ee7
lri $IX1,    #0x0660
lri $WR1,    #0x3264
cw 0x15
call send_back  ; 58964 (0xe654)

lri $AR1,    #0x67e1
lri $IX1,    #0x158c
lri $WR1,    #0x7fbb
cw 0x15
call send_back  ; 58965 (0xe655)

lri $AR1,    #0xaadb
lri $IX1,    #0xd5da
lri $WR1,    #0xc8a1
cw 0x15
call send_back  ; 58966 (0xe656)

lri $AR1,    #0xd020
lri $IX1,    #0xf4a0
lri $WR1,    #0x7413
cw 0x15
call send_back  ; 58967 (0xe657)

lri $AR1,    #0x551d
lri $IX1,    #0x9db2
lri $WR1,    #0xd4ac
cw 0x15
call send_back  ; 58968 (0xe658)

lri $AR1,    #0x6aa4
lri $IX1,    #0x3ada
lri $WR1,    #0x6f9f
cw 0x15
call send_back  ; 58969 (0xe659)

lri $AR1,    #0x4be7
lri $IX1,    #0xe81a
lri $WR1,    #0x8dee
cw 0x15
call send_back  ; 58970 (0xe65a)

lri $AR1,    #0x4828
lri $IX1,    #0x1458
lri $WR1,    #0x9f00
cw 0x15
call send_back  ; 58971 (0xe65b)

lri $AR1,    #0x8047
lri $IX1,    #0xa2b4
lri $WR1,    #0x8917
cw 0x15
call send_back  ; 58972 (0xe65c)

lri $AR1,    #0x9513
lri $IX1,    #0xc92c
lri $WR1,    #0xbdbe
cw 0x15
call send_back  ; 58973 (0xe65d)

lri $AR1,    #0x72ad
lri $IX1,    #0xfdc4
lri $WR1,    #0x25c2
cw 0x15
call send_back  ; 58974 (0xe65e)

lri $AR1,    #0x68c0
lri $IX1,    #0xa3da
lri $WR1,    #0x99b5
cw 0x15
call send_back  ; 58975 (0xe65f)

lri $AR1,    #0x36f0
lri $IX1,    #0xf7ea
lri $WR1,    #0x81a3
cw 0x15
call send_back  ; 58976 (0xe660)

lri $AR1,    #0x8044
lri $IX1,    #0x104e
lri $WR1,    #0xbff7
cw 0x15
call send_back  ; 58977 (0xe661)

lri $AR1,    #0x17d8
lri $IX1,    #0xce5a
lri $WR1,    #0x1928
cw 0x15
call send_back  ; 58978 (0xe662)

lri $AR1,    #0x2cb7
lri $IX1,    #0x6b54
lri $WR1,    #0x3b3a
cw 0x15
call send_back  ; 58979 (0xe663)

lri $AR1,    #0x6221
lri $IX1,    #0x0998
lri $WR1,    #0x3da7
cw 0x15
call send_back  ; 58980 (0xe664)

lri $AR1,    #0xbd00
lri $IX1,    #0x7a90
lri $WR1,    #0x4bbe
cw 0x15
call send_back  ; 58981 (0xe665)

lri $AR1,    #0x5f09
lri $IX1,    #0x5eaa
lri $WR1,    #0x8903
cw 0x15
call send_back  ; 58982 (0xe666)

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