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

lri $AR1,    #0x3b1c
lri $IX1,    #0xe486
lri $WR1,    #0x86f6
cw 0x15
call send_back  ; 6401 (0x1901)

lri $AR1,    #0xb7f0
lri $IX1,    #0x7f00
lri $WR1,    #0xb334
cw 0x15
call send_back  ; 6402 (0x1902)

lri $AR1,    #0x344a
lri $IX1,    #0xaa56
lri $WR1,    #0xe52e
cw 0x15
call send_back  ; 6403 (0x1903)

lri $AR1,    #0x431a
lri $IX1,    #0xcddc
lri $WR1,    #0x505a
cw 0x15
call send_back  ; 6404 (0x1904)

lri $AR1,    #0xaf6e
lri $IX1,    #0x71ea
lri $WR1,    #0x512e
cw 0x15
call send_back  ; 6405 (0x1905)

lri $AR1,    #0x6d9c
lri $IX1,    #0xde88
lri $WR1,    #0xda78
cw 0x15
call send_back  ; 6406 (0x1906)

lri $AR1,    #0x9668
lri $IX1,    #0xffba
lri $WR1,    #0x6740
cw 0x15
call send_back  ; 6407 (0x1907)

lri $AR1,    #0x559a
lri $IX1,    #0x6daa
lri $WR1,    #0x067e
cw 0x15
call send_back  ; 6408 (0x1908)

lri $AR1,    #0x79de
lri $IX1,    #0x4392
lri $WR1,    #0x62cc
cw 0x15
call send_back  ; 6409 (0x1909)

lri $AR1,    #0x587a
lri $IX1,    #0xa43c
lri $WR1,    #0x45f8
cw 0x15
call send_back  ; 6410 (0x190a)

lri $AR1,    #0x2fa8
lri $IX1,    #0x6c44
lri $WR1,    #0x1646
cw 0x15
call send_back  ; 6411 (0x190b)

lri $AR1,    #0x921e
lri $IX1,    #0x64e4
lri $WR1,    #0x7e0c
cw 0x15
call send_back  ; 6412 (0x190c)

lri $AR1,    #0xd10c
lri $IX1,    #0x83fe
lri $WR1,    #0x5134
cw 0x15
call send_back  ; 6413 (0x190d)

lri $AR1,    #0xf9ca
lri $IX1,    #0x0840
lri $WR1,    #0x999c
cw 0x15
call send_back  ; 6414 (0x190e)

lri $AR1,    #0xaf2e
lri $IX1,    #0x91e8
lri $WR1,    #0x7e46
cw 0x15
call send_back  ; 6415 (0x190f)

lri $AR1,    #0x7ef0
lri $IX1,    #0x2184
lri $WR1,    #0xea68
cw 0x15
call send_back  ; 6416 (0x1910)

lri $AR1,    #0x22b4
lri $IX1,    #0x5250
lri $WR1,    #0x05d8
cw 0x15
call send_back  ; 6417 (0x1911)

lri $AR1,    #0x408e
lri $IX1,    #0xbb64
lri $WR1,    #0xc958
cw 0x15
call send_back  ; 6418 (0x1912)

lri $AR1,    #0xa5f8
lri $IX1,    #0xf706
lri $WR1,    #0xdff4
cw 0x15
call send_back  ; 6419 (0x1913)

lri $AR1,    #0x5e4c
lri $IX1,    #0x4fb2
lri $WR1,    #0x6e8a
cw 0x15
call send_back  ; 6420 (0x1914)

lri $AR1,    #0x0fce
lri $IX1,    #0x2e0a
lri $WR1,    #0x5b16
cw 0x15
call send_back  ; 6421 (0x1915)

lri $AR1,    #0x130e
lri $IX1,    #0x2ab6
lri $WR1,    #0xae68
cw 0x15
call send_back  ; 6422 (0x1916)

lri $AR1,    #0xa73a
lri $IX1,    #0x056a
lri $WR1,    #0x13cc
cw 0x15
call send_back  ; 6423 (0x1917)

lri $AR1,    #0xe522
lri $IX1,    #0x958a
lri $WR1,    #0x497a
cw 0x15
call send_back  ; 6424 (0x1918)

lri $AR1,    #0xc71c
lri $IX1,    #0x4742
lri $WR1,    #0x0b8e
cw 0x15
call send_back  ; 6425 (0x1919)

lri $AR1,    #0xe0cc
lri $IX1,    #0xa996
lri $WR1,    #0xe904
cw 0x15
call send_back  ; 6426 (0x191a)

lri $AR1,    #0x832c
lri $IX1,    #0xb9c4
lri $WR1,    #0x5bac
cw 0x15
call send_back  ; 6427 (0x191b)

lri $AR1,    #0x2642
lri $IX1,    #0xb178
lri $WR1,    #0xdb4c
cw 0x15
call send_back  ; 6428 (0x191c)

lri $AR1,    #0xd646
lri $IX1,    #0x6b5a
lri $WR1,    #0xcbfa
cw 0x15
call send_back  ; 6429 (0x191d)

lri $AR1,    #0xb4f2
lri $IX1,    #0x1a58
lri $WR1,    #0x4696
cw 0x15
call send_back  ; 6430 (0x191e)

lri $AR1,    #0xf46e
lri $IX1,    #0xfb96
lri $WR1,    #0x3ae2
cw 0x15
call send_back  ; 6431 (0x191f)

lri $AR1,    #0x6a16
lri $IX1,    #0xd31a
lri $WR1,    #0xfa92
cw 0x15
call send_back  ; 6432 (0x1920)

lri $AR1,    #0x097a
lri $IX1,    #0xc634
lri $WR1,    #0xe788
cw 0x15
call send_back  ; 6433 (0x1921)

lri $AR1,    #0xc15c
lri $IX1,    #0x2d54
lri $WR1,    #0x6474
cw 0x15
call send_back  ; 6434 (0x1922)

lri $AR1,    #0x97da
lri $IX1,    #0x15b8
lri $WR1,    #0xecce
cw 0x15
call send_back  ; 6435 (0x1923)

lri $AR1,    #0x2ae0
lri $IX1,    #0x868a
lri $WR1,    #0x9256
cw 0x15
call send_back  ; 6436 (0x1924)

lri $AR1,    #0x7172
lri $IX1,    #0x2ff8
lri $WR1,    #0x36b2
cw 0x15
call send_back  ; 6437 (0x1925)

lri $AR1,    #0xda02
lri $IX1,    #0xce80
lri $WR1,    #0xc71c
cw 0x15
call send_back  ; 6438 (0x1926)

lri $AR1,    #0x86dc
lri $IX1,    #0x4746
lri $WR1,    #0x91f8
cw 0x15
call send_back  ; 6439 (0x1927)

lri $AR1,    #0xed6e
lri $IX1,    #0x0a3e
lri $WR1,    #0x0094
cw 0x15
call send_back  ; 6440 (0x1928)

lri $AR1,    #0x2820
lri $IX1,    #0x3f3c
lri $WR1,    #0xc890
cw 0x15
call send_back  ; 6441 (0x1929)

lri $AR1,    #0xd8f4
lri $IX1,    #0xd98a
lri $WR1,    #0x1de8
cw 0x15
call send_back  ; 6442 (0x192a)

lri $AR1,    #0x6c46
lri $IX1,    #0xe51e
lri $WR1,    #0xaba2
cw 0x15
call send_back  ; 6443 (0x192b)

lri $AR1,    #0x2e54
lri $IX1,    #0x6762
lri $WR1,    #0x2d32
cw 0x15
call send_back  ; 6444 (0x192c)

lri $AR1,    #0xebb4
lri $IX1,    #0xd7c2
lri $WR1,    #0x16b8
cw 0x15
call send_back  ; 6445 (0x192d)

lri $AR1,    #0x62d2
lri $IX1,    #0xac6c
lri $WR1,    #0xeb44
cw 0x15
call send_back  ; 6446 (0x192e)

lri $AR1,    #0x6bb4
lri $IX1,    #0x03d8
lri $WR1,    #0xfdea
cw 0x15
call send_back  ; 6447 (0x192f)

lri $AR1,    #0x1b9e
lri $IX1,    #0x24a8
lri $WR1,    #0xd170
cw 0x15
call send_back  ; 6448 (0x1930)

lri $AR1,    #0x2842
lri $IX1,    #0x6db2
lri $WR1,    #0x1b90
cw 0x15
call send_back  ; 6449 (0x1931)

lri $AR1,    #0x03ca
lri $IX1,    #0xb088
lri $WR1,    #0x4968
cw 0x15
call send_back  ; 6450 (0x1932)

lri $AR1,    #0xb358
lri $IX1,    #0x223c
lri $WR1,    #0x7056
cw 0x15
call send_back  ; 6451 (0x1933)

lri $AR1,    #0x5310
lri $IX1,    #0xeba8
lri $WR1,    #0xe7ee
cw 0x15
call send_back  ; 6452 (0x1934)

lri $AR1,    #0x87d4
lri $IX1,    #0xb554
lri $WR1,    #0x232a
cw 0x15
call send_back  ; 6453 (0x1935)

lri $AR1,    #0x1d02
lri $IX1,    #0x7240
lri $WR1,    #0x0394
cw 0x15
call send_back  ; 6454 (0x1936)

lri $AR1,    #0x1056
lri $IX1,    #0xcc3a
lri $WR1,    #0x04f8
cw 0x15
call send_back  ; 6455 (0x1937)

lri $AR1,    #0x5cdc
lri $IX1,    #0xf8b0
lri $WR1,    #0xbd1a
cw 0x15
call send_back  ; 6456 (0x1938)

lri $AR1,    #0xa100
lri $IX1,    #0xf73e
lri $WR1,    #0xae9c
cw 0x15
call send_back  ; 6457 (0x1939)

lri $AR1,    #0x9aa2
lri $IX1,    #0x5f0a
lri $WR1,    #0xbbc2
cw 0x15
call send_back  ; 6458 (0x193a)

lri $AR1,    #0x5d9e
lri $IX1,    #0xae60
lri $WR1,    #0x7e00
cw 0x15
call send_back  ; 6459 (0x193b)

lri $AR1,    #0x1ad2
lri $IX1,    #0xad26
lri $WR1,    #0x982a
cw 0x15
call send_back  ; 6460 (0x193c)

lri $AR1,    #0xdc06
lri $IX1,    #0xc116
lri $WR1,    #0x41d4
cw 0x15
call send_back  ; 6461 (0x193d)

lri $AR1,    #0xea38
lri $IX1,    #0xc20e
lri $WR1,    #0x54e4
cw 0x15
call send_back  ; 6462 (0x193e)

lri $AR1,    #0x2544
lri $IX1,    #0x11da
lri $WR1,    #0xc9d0
cw 0x15
call send_back  ; 6463 (0x193f)

lri $AR1,    #0xe426
lri $IX1,    #0x1c56
lri $WR1,    #0x7492
cw 0x15
call send_back  ; 6464 (0x1940)

lri $AR1,    #0x2662
lri $IX1,    #0x2ac6
lri $WR1,    #0x73f2
cw 0x15
call send_back  ; 6465 (0x1941)

lri $AR1,    #0x29c4
lri $IX1,    #0x1734
lri $WR1,    #0x5990
cw 0x15
call send_back  ; 6466 (0x1942)

lri $AR1,    #0x4c54
lri $IX1,    #0x38e0
lri $WR1,    #0xcd9e
cw 0x15
call send_back  ; 6467 (0x1943)

lri $AR1,    #0x859c
lri $IX1,    #0xead2
lri $WR1,    #0xc402
cw 0x15
call send_back  ; 6468 (0x1944)

lri $AR1,    #0x8ce6
lri $IX1,    #0x6838
lri $WR1,    #0x1a24
cw 0x15
call send_back  ; 6469 (0x1945)

lri $AR1,    #0x0720
lri $IX1,    #0x4cca
lri $WR1,    #0x974c
cw 0x15
call send_back  ; 6470 (0x1946)

lri $AR1,    #0x212c
lri $IX1,    #0x93b4
lri $WR1,    #0xa684
cw 0x15
call send_back  ; 6471 (0x1947)

lri $AR1,    #0xde48
lri $IX1,    #0x5844
lri $WR1,    #0xb0da
cw 0x15
call send_back  ; 6472 (0x1948)

lri $AR1,    #0x5456
lri $IX1,    #0xdf84
lri $WR1,    #0xe4f6
cw 0x15
call send_back  ; 6473 (0x1949)

lri $AR1,    #0x4804
lri $IX1,    #0x0b90
lri $WR1,    #0xa632
cw 0x15
call send_back  ; 6474 (0x194a)

lri $AR1,    #0xa45a
lri $IX1,    #0x4618
lri $WR1,    #0xf918
cw 0x15
call send_back  ; 6475 (0x194b)

lri $AR1,    #0x50bc
lri $IX1,    #0xcbc8
lri $WR1,    #0xd922
cw 0x15
call send_back  ; 6476 (0x194c)

lri $AR1,    #0xa876
lri $IX1,    #0x7bb2
lri $WR1,    #0x4834
cw 0x15
call send_back  ; 6477 (0x194d)

lri $AR1,    #0x7272
lri $IX1,    #0x9d54
lri $WR1,    #0x9532
cw 0x15
call send_back  ; 6478 (0x194e)

lri $AR1,    #0x63e4
lri $IX1,    #0xf54a
lri $WR1,    #0x678e
cw 0x15
call send_back  ; 6479 (0x194f)

lri $AR1,    #0xc0ce
lri $IX1,    #0xbac8
lri $WR1,    #0xfa02
cw 0x15
call send_back  ; 6480 (0x1950)

lri $AR1,    #0x79b0
lri $IX1,    #0x73f0
lri $WR1,    #0x0536
cw 0x15
call send_back  ; 6481 (0x1951)

lri $AR1,    #0x8dba
lri $IX1,    #0x8a10
lri $WR1,    #0x72ce
cw 0x15
call send_back  ; 6482 (0x1952)

lri $AR1,    #0xc136
lri $IX1,    #0x5670
lri $WR1,    #0xc63e
cw 0x15
call send_back  ; 6483 (0x1953)

lri $AR1,    #0x55c4
lri $IX1,    #0x424e
lri $WR1,    #0x83bc
cw 0x15
call send_back  ; 6484 (0x1954)

lri $AR1,    #0xa122
lri $IX1,    #0x3f46
lri $WR1,    #0x2fc4
cw 0x15
call send_back  ; 6485 (0x1955)

lri $AR1,    #0x73ea
lri $IX1,    #0x8374
lri $WR1,    #0xea42
cw 0x15
call send_back  ; 6486 (0x1956)

lri $AR1,    #0xf968
lri $IX1,    #0x75a4
lri $WR1,    #0x26d0
cw 0x15
call send_back  ; 6487 (0x1957)

lri $AR1,    #0xb910
lri $IX1,    #0x4ade
lri $WR1,    #0x8e22
cw 0x15
call send_back  ; 6488 (0x1958)

lri $AR1,    #0xe334
lri $IX1,    #0xecce
lri $WR1,    #0x0566
cw 0x15
call send_back  ; 6489 (0x1959)

lri $AR1,    #0xabc8
lri $IX1,    #0xb70e
lri $WR1,    #0xad52
cw 0x15
call send_back  ; 6490 (0x195a)

lri $AR1,    #0xc81e
lri $IX1,    #0x2d56
lri $WR1,    #0x51c4
cw 0x15
call send_back  ; 6491 (0x195b)

lri $AR1,    #0x098e
lri $IX1,    #0x8ed0
lri $WR1,    #0x258a
cw 0x15
call send_back  ; 6492 (0x195c)

lri $AR1,    #0xe8ba
lri $IX1,    #0x9878
lri $WR1,    #0x6f3e
cw 0x15
call send_back  ; 6493 (0x195d)

lri $AR1,    #0x434c
lri $IX1,    #0x1ed8
lri $WR1,    #0xe270
cw 0x15
call send_back  ; 6494 (0x195e)

lri $AR1,    #0xfcdc
lri $IX1,    #0xc654
lri $WR1,    #0xc696
cw 0x15
call send_back  ; 6495 (0x195f)

lri $AR1,    #0x3b30
lri $IX1,    #0x5b26
lri $WR1,    #0x6852
cw 0x15
call send_back  ; 6496 (0x1960)

lri $AR1,    #0xc684
lri $IX1,    #0x342c
lri $WR1,    #0x8662
cw 0x15
call send_back  ; 6497 (0x1961)

lri $AR1,    #0xa298
lri $IX1,    #0xe850
lri $WR1,    #0x4f7a
cw 0x15
call send_back  ; 6498 (0x1962)

lri $AR1,    #0xdae6
lri $IX1,    #0x383e
lri $WR1,    #0xda4c
cw 0x15
call send_back  ; 6499 (0x1963)

lri $AR1,    #0x1b42
lri $IX1,    #0x62e4
lri $WR1,    #0x6cce
cw 0x15
call send_back  ; 6500 (0x1964)

lri $AR1,    #0x2b7a
lri $IX1,    #0x5d98
lri $WR1,    #0xf2b2
cw 0x15
call send_back  ; 6501 (0x1965)

lri $AR1,    #0xcf6a
lri $IX1,    #0x8a14
lri $WR1,    #0x78f6
cw 0x15
call send_back  ; 6502 (0x1966)

lri $AR1,    #0x9b8e
lri $IX1,    #0x0276
lri $WR1,    #0x0c92
cw 0x15
call send_back  ; 6503 (0x1967)

lri $AR1,    #0xb116
lri $IX1,    #0x7ce8
lri $WR1,    #0x67be
cw 0x15
call send_back  ; 6504 (0x1968)

lri $AR1,    #0xcd32
lri $IX1,    #0x785c
lri $WR1,    #0x7c30
cw 0x15
call send_back  ; 6505 (0x1969)

lri $AR1,    #0x191c
lri $IX1,    #0x9ffc
lri $WR1,    #0x6dc4
cw 0x15
call send_back  ; 6506 (0x196a)

lri $AR1,    #0xeb10
lri $IX1,    #0x15a6
lri $WR1,    #0x2b58
cw 0x15
call send_back  ; 6507 (0x196b)

lri $AR1,    #0x3348
lri $IX1,    #0xa444
lri $WR1,    #0x0b50
cw 0x15
call send_back  ; 6508 (0x196c)

lri $AR1,    #0x2b06
lri $IX1,    #0xc4c0
lri $WR1,    #0xa6d8
cw 0x15
call send_back  ; 6509 (0x196d)

lri $AR1,    #0xa518
lri $IX1,    #0x25ac
lri $WR1,    #0x775a
cw 0x15
call send_back  ; 6510 (0x196e)

lri $AR1,    #0xb7f0
lri $IX1,    #0xc5aa
lri $WR1,    #0x5ce0
cw 0x15
call send_back  ; 6511 (0x196f)

lri $AR1,    #0x496e
lri $IX1,    #0x1316
lri $WR1,    #0x9690
cw 0x15
call send_back  ; 6512 (0x1970)

lri $AR1,    #0x3fb2
lri $IX1,    #0xaaf8
lri $WR1,    #0xb0fa
cw 0x15
call send_back  ; 6513 (0x1971)

lri $AR1,    #0xd3ce
lri $IX1,    #0x27aa
lri $WR1,    #0x6678
cw 0x15
call send_back  ; 6514 (0x1972)

lri $AR1,    #0x2cc6
lri $IX1,    #0x3c14
lri $WR1,    #0xa85c
cw 0x15
call send_back  ; 6515 (0x1973)

lri $AR1,    #0xd254
lri $IX1,    #0xcfd8
lri $WR1,    #0x8d62
cw 0x15
call send_back  ; 6516 (0x1974)

lri $AR1,    #0x3966
lri $IX1,    #0xf2d0
lri $WR1,    #0xcc12
cw 0x15
call send_back  ; 6517 (0x1975)

lri $AR1,    #0xf632
lri $IX1,    #0x8302
lri $WR1,    #0xb464
cw 0x15
call send_back  ; 6518 (0x1976)

lri $AR1,    #0x2ca2
lri $IX1,    #0x631a
lri $WR1,    #0x1502
cw 0x15
call send_back  ; 6519 (0x1977)

lri $AR1,    #0xe6b4
lri $IX1,    #0x8546
lri $WR1,    #0x90fe
cw 0x15
call send_back  ; 6520 (0x1978)

lri $AR1,    #0xd064
lri $IX1,    #0x1fe8
lri $WR1,    #0xe81a
cw 0x15
call send_back  ; 6521 (0x1979)

lri $AR1,    #0x4bae
lri $IX1,    #0xcb52
lri $WR1,    #0x30a4
cw 0x15
call send_back  ; 6522 (0x197a)

lri $AR1,    #0x29d8
lri $IX1,    #0xc116
lri $WR1,    #0xf7ac
cw 0x15
call send_back  ; 6523 (0x197b)

lri $AR1,    #0x5066
lri $IX1,    #0xfcaa
lri $WR1,    #0x50e0
cw 0x15
call send_back  ; 6524 (0x197c)

lri $AR1,    #0x5410
lri $IX1,    #0xaa6e
lri $WR1,    #0xe968
cw 0x15
call send_back  ; 6525 (0x197d)

lri $AR1,    #0xc0a0
lri $IX1,    #0xef66
lri $WR1,    #0x732c
cw 0x15
call send_back  ; 6526 (0x197e)

lri $AR1,    #0xaf66
lri $IX1,    #0x3c78
lri $WR1,    #0x86e4
cw 0x15
call send_back  ; 6527 (0x197f)

lri $AR1,    #0x2e24
lri $IX1,    #0x12bc
lri $WR1,    #0x0c46
cw 0x15
call send_back  ; 6528 (0x1980)

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

