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

lri $AR1,    #0x0040
lri $IX1,    #0xe4b1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58546 (0xe4b2)

lri $AR1,    #0x0040
lri $IX1,    #0xe4b2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58547 (0xe4b3)

lri $AR1,    #0x0040
lri $IX1,    #0xe4b3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58548 (0xe4b4)

lri $AR1,    #0x0040
lri $IX1,    #0xe4b4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58549 (0xe4b5)

lri $AR1,    #0x0040
lri $IX1,    #0xe4b5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58550 (0xe4b6)

lri $AR1,    #0x0040
lri $IX1,    #0xe4b6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58551 (0xe4b7)

lri $AR1,    #0x0040
lri $IX1,    #0xe4b7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58552 (0xe4b8)

lri $AR1,    #0x0040
lri $IX1,    #0xe4b8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58553 (0xe4b9)

lri $AR1,    #0x0040
lri $IX1,    #0xe4b9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58554 (0xe4ba)

lri $AR1,    #0x0040
lri $IX1,    #0xe4ba
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58555 (0xe4bb)

lri $AR1,    #0x0040
lri $IX1,    #0xe4bb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58556 (0xe4bc)

lri $AR1,    #0x0040
lri $IX1,    #0xe4bc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58557 (0xe4bd)

lri $AR1,    #0x0040
lri $IX1,    #0xe4bd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58558 (0xe4be)

lri $AR1,    #0x0040
lri $IX1,    #0xe4be
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58559 (0xe4bf)

lri $AR1,    #0x0040
lri $IX1,    #0xe4bf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58560 (0xe4c0)

lri $AR1,    #0x0040
lri $IX1,    #0xe4c0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58561 (0xe4c1)

lri $AR1,    #0x0040
lri $IX1,    #0xe4c1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58562 (0xe4c2)

lri $AR1,    #0x0040
lri $IX1,    #0xe4c2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58563 (0xe4c3)

lri $AR1,    #0x0040
lri $IX1,    #0xe4c3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58564 (0xe4c4)

lri $AR1,    #0x0040
lri $IX1,    #0xe4c4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58565 (0xe4c5)

lri $AR1,    #0x0040
lri $IX1,    #0xe4c5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58566 (0xe4c6)

lri $AR1,    #0x0040
lri $IX1,    #0xe4c6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58567 (0xe4c7)

lri $AR1,    #0x0040
lri $IX1,    #0xe4c7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58568 (0xe4c8)

lri $AR1,    #0x0040
lri $IX1,    #0xe4c8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58569 (0xe4c9)

lri $AR1,    #0x0040
lri $IX1,    #0xe4c9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58570 (0xe4ca)

lri $AR1,    #0x0040
lri $IX1,    #0xe4ca
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58571 (0xe4cb)

lri $AR1,    #0x0040
lri $IX1,    #0xe4cb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58572 (0xe4cc)

lri $AR1,    #0x0040
lri $IX1,    #0xe4cc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58573 (0xe4cd)

lri $AR1,    #0x0040
lri $IX1,    #0xe4cd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58574 (0xe4ce)

lri $AR1,    #0x0040
lri $IX1,    #0xe4ce
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58575 (0xe4cf)

lri $AR1,    #0x0040
lri $IX1,    #0xe4cf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58576 (0xe4d0)

lri $AR1,    #0x0040
lri $IX1,    #0xe4d0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58577 (0xe4d1)

lri $AR1,    #0x0040
lri $IX1,    #0xe4d1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58578 (0xe4d2)

lri $AR1,    #0x0040
lri $IX1,    #0xe4d2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58579 (0xe4d3)

lri $AR1,    #0x0040
lri $IX1,    #0xe4d3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58580 (0xe4d4)

lri $AR1,    #0x0040
lri $IX1,    #0xe4d4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58581 (0xe4d5)

lri $AR1,    #0x0040
lri $IX1,    #0xe4d5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58582 (0xe4d6)

lri $AR1,    #0x0040
lri $IX1,    #0xe4d6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58583 (0xe4d7)

lri $AR1,    #0x0040
lri $IX1,    #0xe4d7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58584 (0xe4d8)

lri $AR1,    #0x0040
lri $IX1,    #0xe4d8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58585 (0xe4d9)

lri $AR1,    #0x0040
lri $IX1,    #0xe4d9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58586 (0xe4da)

lri $AR1,    #0x0040
lri $IX1,    #0xe4da
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58587 (0xe4db)

lri $AR1,    #0x0040
lri $IX1,    #0xe4db
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58588 (0xe4dc)

lri $AR1,    #0x0040
lri $IX1,    #0xe4dc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58589 (0xe4dd)

lri $AR1,    #0x0040
lri $IX1,    #0xe4dd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58590 (0xe4de)

lri $AR1,    #0x0040
lri $IX1,    #0xe4de
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58591 (0xe4df)

lri $AR1,    #0x0040
lri $IX1,    #0xe4df
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58592 (0xe4e0)

lri $AR1,    #0x0040
lri $IX1,    #0xe4e0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58593 (0xe4e1)

lri $AR1,    #0x0040
lri $IX1,    #0xe4e1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58594 (0xe4e2)

lri $AR1,    #0x0040
lri $IX1,    #0xe4e2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58595 (0xe4e3)

lri $AR1,    #0x0040
lri $IX1,    #0xe4e3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58596 (0xe4e4)

lri $AR1,    #0x0040
lri $IX1,    #0xe4e4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58597 (0xe4e5)

lri $AR1,    #0x0040
lri $IX1,    #0xe4e5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58598 (0xe4e6)

lri $AR1,    #0x0040
lri $IX1,    #0xe4e6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58599 (0xe4e7)

lri $AR1,    #0x0040
lri $IX1,    #0xe4e7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58600 (0xe4e8)

lri $AR1,    #0x0040
lri $IX1,    #0xe4e8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58601 (0xe4e9)

lri $AR1,    #0x0040
lri $IX1,    #0xe4e9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58602 (0xe4ea)

lri $AR1,    #0x0040
lri $IX1,    #0xe4ea
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58603 (0xe4eb)

lri $AR1,    #0x0040
lri $IX1,    #0xe4eb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58604 (0xe4ec)

lri $AR1,    #0x0040
lri $IX1,    #0xe4ec
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58605 (0xe4ed)

lri $AR1,    #0x0040
lri $IX1,    #0xe4ed
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58606 (0xe4ee)

lri $AR1,    #0x0040
lri $IX1,    #0xe4ee
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58607 (0xe4ef)

lri $AR1,    #0x0040
lri $IX1,    #0xe4ef
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58608 (0xe4f0)

lri $AR1,    #0x0040
lri $IX1,    #0xe4f0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58609 (0xe4f1)

lri $AR1,    #0x0040
lri $IX1,    #0xe4f1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58610 (0xe4f2)

lri $AR1,    #0x0040
lri $IX1,    #0xe4f2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58611 (0xe4f3)

lri $AR1,    #0x0040
lri $IX1,    #0xe4f3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58612 (0xe4f4)

lri $AR1,    #0x0040
lri $IX1,    #0xe4f4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58613 (0xe4f5)

lri $AR1,    #0x0040
lri $IX1,    #0xe4f5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58614 (0xe4f6)

lri $AR1,    #0x0040
lri $IX1,    #0xe4f6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58615 (0xe4f7)

lri $AR1,    #0x0040
lri $IX1,    #0xe4f7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58616 (0xe4f8)

lri $AR1,    #0x0040
lri $IX1,    #0xe4f8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58617 (0xe4f9)

lri $AR1,    #0x0040
lri $IX1,    #0xe4f9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58618 (0xe4fa)

lri $AR1,    #0x0040
lri $IX1,    #0xe4fa
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58619 (0xe4fb)

lri $AR1,    #0x0040
lri $IX1,    #0xe4fb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58620 (0xe4fc)

lri $AR1,    #0x0040
lri $IX1,    #0xe4fc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58621 (0xe4fd)

lri $AR1,    #0x0040
lri $IX1,    #0xe4fd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58622 (0xe4fe)

lri $AR1,    #0x0040
lri $IX1,    #0xe4fe
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58623 (0xe4ff)

lri $AR1,    #0x0040
lri $IX1,    #0xe4ff
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58624 (0xe500)

lri $AR1,    #0x0040
lri $IX1,    #0xe500
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58625 (0xe501)

lri $AR1,    #0x0040
lri $IX1,    #0xe501
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58626 (0xe502)

lri $AR1,    #0x0040
lri $IX1,    #0xe502
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58627 (0xe503)

lri $AR1,    #0x0040
lri $IX1,    #0xe503
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58628 (0xe504)

lri $AR1,    #0x0040
lri $IX1,    #0xe504
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58629 (0xe505)

lri $AR1,    #0x0040
lri $IX1,    #0xe505
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58630 (0xe506)

lri $AR1,    #0x0040
lri $IX1,    #0xe506
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58631 (0xe507)

lri $AR1,    #0x0040
lri $IX1,    #0xe507
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58632 (0xe508)

lri $AR1,    #0x0040
lri $IX1,    #0xe508
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58633 (0xe509)

lri $AR1,    #0x0040
lri $IX1,    #0xe509
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58634 (0xe50a)

lri $AR1,    #0x0040
lri $IX1,    #0xe50a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58635 (0xe50b)

lri $AR1,    #0x0040
lri $IX1,    #0xe50b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58636 (0xe50c)

lri $AR1,    #0x0040
lri $IX1,    #0xe50c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58637 (0xe50d)

lri $AR1,    #0x0040
lri $IX1,    #0xe50d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58638 (0xe50e)

lri $AR1,    #0x0040
lri $IX1,    #0xe50e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58639 (0xe50f)

lri $AR1,    #0x0040
lri $IX1,    #0xe50f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58640 (0xe510)

lri $AR1,    #0x0040
lri $IX1,    #0xe510
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58641 (0xe511)

lri $AR1,    #0x0040
lri $IX1,    #0xe511
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58642 (0xe512)

lri $AR1,    #0x0040
lri $IX1,    #0xe512
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58643 (0xe513)

lri $AR1,    #0x0040
lri $IX1,    #0xe513
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58644 (0xe514)

lri $AR1,    #0x0040
lri $IX1,    #0xe514
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58645 (0xe515)

lri $AR1,    #0x0040
lri $IX1,    #0xe515
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58646 (0xe516)

lri $AR1,    #0x0040
lri $IX1,    #0xe516
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58647 (0xe517)

lri $AR1,    #0x0040
lri $IX1,    #0xe517
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58648 (0xe518)

lri $AR1,    #0x0040
lri $IX1,    #0xe518
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58649 (0xe519)

lri $AR1,    #0x0040
lri $IX1,    #0xe519
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58650 (0xe51a)

lri $AR1,    #0x0040
lri $IX1,    #0xe51a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58651 (0xe51b)

lri $AR1,    #0x0040
lri $IX1,    #0xe51b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58652 (0xe51c)

lri $AR1,    #0x0040
lri $IX1,    #0xe51c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58653 (0xe51d)

lri $AR1,    #0x0040
lri $IX1,    #0xe51d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 58654 (0xe51e)

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