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

lri $AR1,    #0x7fc1
lri $IX1,    #0xc03c
lri $WR1,    #0xc556
cw 0x15
call send_back  ; 41507 (0xa223)

lri $AR1,    #0xbb0f
lri $IX1,    #0xfe5c
lri $WR1,    #0xe16a
cw 0x15
call send_back  ; 41508 (0xa224)

lri $AR1,    #0x61aa
lri $IX1,    #0xa52e
lri $WR1,    #0xe89d
cw 0x15
call send_back  ; 41509 (0xa225)

lri $AR1,    #0x4f1e
lri $IX1,    #0xa872
lri $WR1,    #0x5c76
cw 0x15
call send_back  ; 41510 (0xa226)

lri $AR1,    #0x5411
lri $IX1,    #0x7728
lri $WR1,    #0x6bdf
cw 0x15
call send_back  ; 41511 (0xa227)

lri $AR1,    #0xa9e8
lri $IX1,    #0xe690
lri $WR1,    #0x70c8
cw 0x15
call send_back  ; 41512 (0xa228)

lri $AR1,    #0xbdd8
lri $IX1,    #0xbdd4
lri $WR1,    #0x5b77
cw 0x15
call send_back  ; 41513 (0xa229)

lri $AR1,    #0xb1d1
lri $IX1,    #0x715a
lri $WR1,    #0xd928
cw 0x15
call send_back  ; 41514 (0xa22a)

lri $AR1,    #0xa506
lri $IX1,    #0x4da2
lri $WR1,    #0x94ff
cw 0x15
call send_back  ; 41515 (0xa22b)

lri $AR1,    #0x7d58
lri $IX1,    #0xeda8
lri $WR1,    #0x47e1
cw 0x15
call send_back  ; 41516 (0xa22c)

lri $AR1,    #0xe68e
lri $IX1,    #0x81b8
lri $WR1,    #0x453e
cw 0x15
call send_back  ; 41517 (0xa22d)

lri $AR1,    #0x6b95
lri $IX1,    #0x3fae
lri $WR1,    #0x306b
cw 0x15
call send_back  ; 41518 (0xa22e)

lri $AR1,    #0x5197
lri $IX1,    #0x7670
lri $WR1,    #0xe788
cw 0x15
call send_back  ; 41519 (0xa22f)

lri $AR1,    #0x144d
lri $IX1,    #0x4ac4
lri $WR1,    #0x5694
cw 0x15
call send_back  ; 41520 (0xa230)

lri $AR1,    #0x6e42
lri $IX1,    #0x3c48
lri $WR1,    #0xaeae
cw 0x15
call send_back  ; 41521 (0xa231)

lri $AR1,    #0x9771
lri $IX1,    #0x5592
lri $WR1,    #0x4b27
cw 0x15
call send_back  ; 41522 (0xa232)

lri $AR1,    #0x37f4
lri $IX1,    #0x7b60
lri $WR1,    #0x3f62
cw 0x15
call send_back  ; 41523 (0xa233)

lri $AR1,    #0x542d
lri $IX1,    #0xcace
lri $WR1,    #0x7e19
cw 0x15
call send_back  ; 41524 (0xa234)

lri $AR1,    #0x931f
lri $IX1,    #0x7f72
lri $WR1,    #0xa41e
cw 0x15
call send_back  ; 41525 (0xa235)

lri $AR1,    #0x8f69
lri $IX1,    #0x8e72
lri $WR1,    #0x0e24
cw 0x15
call send_back  ; 41526 (0xa236)

lri $AR1,    #0xc688
lri $IX1,    #0x2448
lri $WR1,    #0x628f
cw 0x15
call send_back  ; 41527 (0xa237)

lri $AR1,    #0x91d7
lri $IX1,    #0x9f74
lri $WR1,    #0x7dfe
cw 0x15
call send_back  ; 41528 (0xa238)

lri $AR1,    #0x400c
lri $IX1,    #0x9ab2
lri $WR1,    #0x9a7a
cw 0x15
call send_back  ; 41529 (0xa239)

lri $AR1,    #0x4577
lri $IX1,    #0x3e00
lri $WR1,    #0x76f9
cw 0x15
call send_back  ; 41530 (0xa23a)

lri $AR1,    #0x6cf0
lri $IX1,    #0x7e04
lri $WR1,    #0x9628
cw 0x15
call send_back  ; 41531 (0xa23b)

lri $AR1,    #0x5aa2
lri $IX1,    #0x4e2e
lri $WR1,    #0x412c
cw 0x15
call send_back  ; 41532 (0xa23c)

lri $AR1,    #0x6da1
lri $IX1,    #0x320a
lri $WR1,    #0xb449
cw 0x15
call send_back  ; 41533 (0xa23d)

lri $AR1,    #0x7c8d
lri $IX1,    #0x2f38
lri $WR1,    #0x991b
cw 0x15
call send_back  ; 41534 (0xa23e)

lri $AR1,    #0xed05
lri $IX1,    #0x017c
lri $WR1,    #0x935f
cw 0x15
call send_back  ; 41535 (0xa23f)

lri $AR1,    #0x9d5a
lri $IX1,    #0xbf3a
lri $WR1,    #0x8ae1
cw 0x15
call send_back  ; 41536 (0xa240)

lri $AR1,    #0x6336
lri $IX1,    #0xf502
lri $WR1,    #0x66a6
cw 0x15
call send_back  ; 41537 (0xa241)

lri $AR1,    #0xe196
lri $IX1,    #0xc360
lri $WR1,    #0x7ad5
cw 0x15
call send_back  ; 41538 (0xa242)

lri $AR1,    #0x8bd8
lri $IX1,    #0xda9e
lri $WR1,    #0x5c7c
cw 0x15
call send_back  ; 41539 (0xa243)

lri $AR1,    #0x3347
lri $IX1,    #0x6ca4
lri $WR1,    #0x83b5
cw 0x15
call send_back  ; 41540 (0xa244)

lri $AR1,    #0x57d6
lri $IX1,    #0x75ae
lri $WR1,    #0x7e48
cw 0x15
call send_back  ; 41541 (0xa245)

lri $AR1,    #0x8473
lri $IX1,    #0x3102
lri $WR1,    #0x524b
cw 0x15
call send_back  ; 41542 (0xa246)

lri $AR1,    #0xa2b1
lri $IX1,    #0x4f5e
lri $WR1,    #0x71e1
cw 0x15
call send_back  ; 41543 (0xa247)

lri $AR1,    #0x4927
lri $IX1,    #0xb138
lri $WR1,    #0xa697
cw 0x15
call send_back  ; 41544 (0xa248)

lri $AR1,    #0x7344
lri $IX1,    #0x1fa6
lri $WR1,    #0x847b
cw 0x15
call send_back  ; 41545 (0xa249)

lri $AR1,    #0xb0fe
lri $IX1,    #0xe2f4
lri $WR1,    #0xa277
cw 0x15
call send_back  ; 41546 (0xa24a)

lri $AR1,    #0x900f
lri $IX1,    #0x46ba
lri $WR1,    #0x6708
cw 0x15
call send_back  ; 41547 (0xa24b)

lri $AR1,    #0xa82f
lri $IX1,    #0x3790
lri $WR1,    #0x8dcf
cw 0x15
call send_back  ; 41548 (0xa24c)

lri $AR1,    #0xaefe
lri $IX1,    #0x4f0c
lri $WR1,    #0x8425
cw 0x15
call send_back  ; 41549 (0xa24d)

lri $AR1,    #0xa80b
lri $IX1,    #0xf74e
lri $WR1,    #0x382d
cw 0x15
call send_back  ; 41550 (0xa24e)

lri $AR1,    #0x88ae
lri $IX1,    #0xefb8
lri $WR1,    #0x5780
cw 0x15
call send_back  ; 41551 (0xa24f)

lri $AR1,    #0x5f0f
lri $IX1,    #0x890a
lri $WR1,    #0x9ffa
cw 0x15
call send_back  ; 41552 (0xa250)

lri $AR1,    #0x9737
lri $IX1,    #0x878a
lri $WR1,    #0xaec2
cw 0x15
call send_back  ; 41553 (0xa251)

lri $AR1,    #0xb864
lri $IX1,    #0xde76
lri $WR1,    #0x8718
cw 0x15
call send_back  ; 41554 (0xa252)

lri $AR1,    #0xc879
lri $IX1,    #0x8866
lri $WR1,    #0x3bf5
cw 0x15
call send_back  ; 41555 (0xa253)

lri $AR1,    #0xcaec
lri $IX1,    #0xbcce
lri $WR1,    #0x9d12
cw 0x15
call send_back  ; 41556 (0xa254)

lri $AR1,    #0x6bdd
lri $IX1,    #0xcb52
lri $WR1,    #0x616a
cw 0x15
call send_back  ; 41557 (0xa255)

lri $AR1,    #0xb7ca
lri $IX1,    #0x1a18
lri $WR1,    #0x66bb
cw 0x15
call send_back  ; 41558 (0xa256)

lri $AR1,    #0xa39d
lri $IX1,    #0x44da
lri $WR1,    #0x9f26
cw 0x15
call send_back  ; 41559 (0xa257)

lri $AR1,    #0x8066
lri $IX1,    #0x46ce
lri $WR1,    #0x8b64
cw 0x15
call send_back  ; 41560 (0xa258)

lri $AR1,    #0xa192
lri $IX1,    #0x121c
lri $WR1,    #0x89c6
cw 0x15
call send_back  ; 41561 (0xa259)

lri $AR1,    #0x5bf8
lri $IX1,    #0x1c26
lri $WR1,    #0xaf73
cw 0x15
call send_back  ; 41562 (0xa25a)

lri $AR1,    #0x7777
lri $IX1,    #0x5632
lri $WR1,    #0x32ed
cw 0x15
call send_back  ; 41563 (0xa25b)

lri $AR1,    #0x9491
lri $IX1,    #0xe6c0
lri $WR1,    #0x8499
cw 0x15
call send_back  ; 41564 (0xa25c)

lri $AR1,    #0xc2b3
lri $IX1,    #0xe02e
lri $WR1,    #0x6b20
cw 0x15
call send_back  ; 41565 (0xa25d)

lri $AR1,    #0x739f
lri $IX1,    #0x45de
lri $WR1,    #0xb770
cw 0x15
call send_back  ; 41566 (0xa25e)

lri $AR1,    #0x7ba1
lri $IX1,    #0x1192
lri $WR1,    #0xc53c
cw 0x15
call send_back  ; 41567 (0xa25f)

lri $AR1,    #0xc5fb
lri $IX1,    #0xb722
lri $WR1,    #0x62ae
cw 0x15
call send_back  ; 41568 (0xa260)

lri $AR1,    #0xb056
lri $IX1,    #0xfd4c
lri $WR1,    #0x4353
cw 0x15
call send_back  ; 41569 (0xa261)

lri $AR1,    #0x7f6c
lri $IX1,    #0x06c2
lri $WR1,    #0x2fc0
cw 0x15
call send_back  ; 41570 (0xa262)

lri $AR1,    #0x72eb
lri $IX1,    #0x372a
lri $WR1,    #0x151b
cw 0x15
call send_back  ; 41571 (0xa263)

lri $AR1,    #0x85ae
lri $IX1,    #0x5c40
lri $WR1,    #0xccfd
cw 0x15
call send_back  ; 41572 (0xa264)

lri $AR1,    #0x4344
lri $IX1,    #0x4bce
lri $WR1,    #0x4fd3
cw 0x15
call send_back  ; 41573 (0xa265)

lri $AR1,    #0xaafe
lri $IX1,    #0x1ba0
lri $WR1,    #0x6146
cw 0x15
call send_back  ; 41574 (0xa266)

lri $AR1,    #0x3c5c
lri $IX1,    #0x592e
lri $WR1,    #0x87ac
cw 0x15
call send_back  ; 41575 (0xa267)

lri $AR1,    #0x6024
lri $IX1,    #0x5326
lri $WR1,    #0x2533
cw 0x15
call send_back  ; 41576 (0xa268)

lri $AR1,    #0x4d04
lri $IX1,    #0xbf88
lri $WR1,    #0x32b0
cw 0x15
call send_back  ; 41577 (0xa269)

lri $AR1,    #0x25f3
lri $IX1,    #0xed88
lri $WR1,    #0xc9bb
cw 0x15
call send_back  ; 41578 (0xa26a)

lri $AR1,    #0xc435
lri $IX1,    #0x62dc
lri $WR1,    #0x3d28
cw 0x15
call send_back  ; 41579 (0xa26b)

lri $AR1,    #0x4656
lri $IX1,    #0x60ac
lri $WR1,    #0x545a
cw 0x15
call send_back  ; 41580 (0xa26c)

lri $AR1,    #0x78d2
lri $IX1,    #0x74e0
lri $WR1,    #0xb78d
cw 0x15
call send_back  ; 41581 (0xa26d)

lri $AR1,    #0xdcda
lri $IX1,    #0x10da
lri $WR1,    #0x18b6
cw 0x15
call send_back  ; 41582 (0xa26e)

lri $AR1,    #0x54ef
lri $IX1,    #0x3f7a
lri $WR1,    #0x85e2
cw 0x15
call send_back  ; 41583 (0xa26f)

lri $AR1,    #0x36b1
lri $IX1,    #0x2074
lri $WR1,    #0x77ce
cw 0x15
call send_back  ; 41584 (0xa270)

lri $AR1,    #0x8ca0
lri $IX1,    #0xe7bc
lri $WR1,    #0x78a7
cw 0x15
call send_back  ; 41585 (0xa271)

lri $AR1,    #0x923e
lri $IX1,    #0xe436
lri $WR1,    #0x8c9e
cw 0x15
call send_back  ; 41586 (0xa272)

lri $AR1,    #0x483a
lri $IX1,    #0xa156
lri $WR1,    #0x3740
cw 0x15
call send_back  ; 41587 (0xa273)

lri $AR1,    #0x461b
lri $IX1,    #0xb3e4
lri $WR1,    #0x6e48
cw 0x15
call send_back  ; 41588 (0xa274)

lri $AR1,    #0x8a1d
lri $IX1,    #0x4a92
lri $WR1,    #0x63d6
cw 0x15
call send_back  ; 41589 (0xa275)

lri $AR1,    #0x57a2
lri $IX1,    #0x4f8a
lri $WR1,    #0x2fb9
cw 0x15
call send_back  ; 41590 (0xa276)

lri $AR1,    #0x97fe
lri $IX1,    #0xe8c6
lri $WR1,    #0x60c5
cw 0x15
call send_back  ; 41591 (0xa277)

lri $AR1,    #0x88f3
lri $IX1,    #0x912e
lri $WR1,    #0x44d7
cw 0x15
call send_back  ; 41592 (0xa278)

lri $AR1,    #0xafac
lri $IX1,    #0xfd58
lri $WR1,    #0x9f85
cw 0x15
call send_back  ; 41593 (0xa279)

lri $AR1,    #0x667f
lri $IX1,    #0xa30a
lri $WR1,    #0xf522
cw 0x15
call send_back  ; 41594 (0xa27a)

lri $AR1,    #0xcf5a
lri $IX1,    #0x2b28
lri $WR1,    #0x610b
cw 0x15
call send_back  ; 41595 (0xa27b)

lri $AR1,    #0x5c0f
lri $IX1,    #0x7246
lri $WR1,    #0x83e2
cw 0x15
call send_back  ; 41596 (0xa27c)

lri $AR1,    #0x5969
lri $IX1,    #0x2492
lri $WR1,    #0x4fb9
cw 0x15
call send_back  ; 41597 (0xa27d)

lri $AR1,    #0x594a
lri $IX1,    #0x9630
lri $WR1,    #0x35cb
cw 0x15
call send_back  ; 41598 (0xa27e)

lri $AR1,    #0x5ba8
lri $IX1,    #0x59e0
lri $WR1,    #0xdac2
cw 0x15
call send_back  ; 41599 (0xa27f)

lri $AR1,    #0x8dbd
lri $IX1,    #0x63f0
lri $WR1,    #0xdc29
cw 0x15
call send_back  ; 41600 (0xa280)

lri $AR1,    #0xc228
lri $IX1,    #0x6048
lri $WR1,    #0xbb11
cw 0x15
call send_back  ; 41601 (0xa281)

lri $AR1,    #0xc46a
lri $IX1,    #0x66c0
lri $WR1,    #0x8d81
cw 0x15
call send_back  ; 41602 (0xa282)

lri $AR1,    #0xbd78
lri $IX1,    #0x895e
lri $WR1,    #0x89b4
cw 0x15
call send_back  ; 41603 (0xa283)

lri $AR1,    #0x66c4
lri $IX1,    #0xf4b0
lri $WR1,    #0x33c1
cw 0x15
call send_back  ; 41604 (0xa284)

lri $AR1,    #0xa477
lri $IX1,    #0xa30e
lri $WR1,    #0xcfc1
cw 0x15
call send_back  ; 41605 (0xa285)

lri $AR1,    #0x2f43
lri $IX1,    #0x17c8
lri $WR1,    #0x97e6
cw 0x15
call send_back  ; 41606 (0xa286)

lri $AR1,    #0x9992
lri $IX1,    #0x5816
lri $WR1,    #0x77c1
cw 0x15
call send_back  ; 41607 (0xa287)

lri $AR1,    #0x9362
lri $IX1,    #0x83d6
lri $WR1,    #0x931d
cw 0x15
call send_back  ; 41608 (0xa288)

lri $AR1,    #0xbb98
lri $IX1,    #0x28fc
lri $WR1,    #0x8896
cw 0x15
call send_back  ; 41609 (0xa289)

lri $AR1,    #0x6d2e
lri $IX1,    #0xd09a
lri $WR1,    #0x8d76
cw 0x15
call send_back  ; 41610 (0xa28a)

lri $AR1,    #0x29f6
lri $IX1,    #0x7586
lri $WR1,    #0x91e3
cw 0x15
call send_back  ; 41611 (0xa28b)

lri $AR1,    #0x6c4c
lri $IX1,    #0xb07e
lri $WR1,    #0x7202
cw 0x15
call send_back  ; 41612 (0xa28c)

lri $AR1,    #0xa489
lri $IX1,    #0x8eb4
lri $WR1,    #0xb1f7
cw 0x15
call send_back  ; 41613 (0xa28d)

lri $AR1,    #0xd67f
lri $IX1,    #0x5bd2
lri $WR1,    #0xc083
cw 0x15
call send_back  ; 41614 (0xa28e)

lri $AR1,    #0x8edd
lri $IX1,    #0x4934
lri $WR1,    #0x9d2d
cw 0x15
call send_back  ; 41615 (0xa28f)

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