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

lri $AR1,    #0x3f20
lri $IX1,    #0x2328
lri $WR1,    #0xc77b
cw 0x15
call send_back  ; 65427 (0xff93)

lri $AR1,    #0xcbbd
lri $IX1,    #0x5d60
lri $WR1,    #0x2db7
cw 0x15
call send_back  ; 65428 (0xff94)

lri $AR1,    #0x6494
lri $IX1,    #0xd19c
lri $WR1,    #0x936d
cw 0x15
call send_back  ; 65429 (0xff95)

lri $AR1,    #0xb8a1
lri $IX1,    #0xe39a
lri $WR1,    #0x5b15
cw 0x15
call send_back  ; 65430 (0xff96)

lri $AR1,    #0x859a
lri $IX1,    #0x33d2
lri $WR1,    #0x3110
cw 0x15
call send_back  ; 65431 (0xff97)

lri $AR1,    #0x7f2e
lri $IX1,    #0xb9ec
lri $WR1,    #0xd772
cw 0x15
call send_back  ; 65432 (0xff98)

lri $AR1,    #0x5cba
lri $IX1,    #0x38b4
lri $WR1,    #0x8a71
cw 0x15
call send_back  ; 65433 (0xff99)

lri $AR1,    #0x93d0
lri $IX1,    #0xb2dc
lri $WR1,    #0x9327
cw 0x15
call send_back  ; 65434 (0xff9a)

lri $AR1,    #0xb95f
lri $IX1,    #0x782c
lri $WR1,    #0xef9f
cw 0x15
call send_back  ; 65435 (0xff9b)

lri $AR1,    #0xeac5
lri $IX1,    #0x3f58
lri $WR1,    #0x8cd3
cw 0x15
call send_back  ; 65436 (0xff9c)

lri $AR1,    #0xdba0
lri $IX1,    #0xa91e
lri $WR1,    #0x4894
cw 0x15
call send_back  ; 65437 (0xff9d)

lri $AR1,    #0x94ac
lri $IX1,    #0x9df4
lri $WR1,    #0xaf04
cw 0x15
call send_back  ; 65438 (0xff9e)

lri $AR1,    #0x7387
lri $IX1,    #0x57dc
lri $WR1,    #0x889b
cw 0x15
call send_back  ; 65439 (0xff9f)

lri $AR1,    #0x7290
lri $IX1,    #0xb6a0
lri $WR1,    #0xb35b
cw 0x15
call send_back  ; 65440 (0xffa0)

lri $AR1,    #0x8bda
lri $IX1,    #0xd522
lri $WR1,    #0x4b35
cw 0x15
call send_back  ; 65441 (0xffa1)

lri $AR1,    #0x8963
lri $IX1,    #0xdae4
lri $WR1,    #0xb336
cw 0x15
call send_back  ; 65442 (0xffa2)

lri $AR1,    #0xa863
lri $IX1,    #0xd58e
lri $WR1,    #0x828a
cw 0x15
call send_back  ; 65443 (0xffa3)

lri $AR1,    #0x7d14
lri $IX1,    #0x228e
lri $WR1,    #0x8dde
cw 0x15
call send_back  ; 65444 (0xffa4)

lri $AR1,    #0x5fb5
lri $IX1,    #0xb994
lri $WR1,    #0x9f47
cw 0x15
call send_back  ; 65445 (0xffa5)

lri $AR1,    #0xbb13
lri $IX1,    #0x9cf8
lri $WR1,    #0x4c22
cw 0x15
call send_back  ; 65446 (0xffa6)

lri $AR1,    #0x387b
lri $IX1,    #0xf5f8
lri $WR1,    #0x9a0f
cw 0x15
call send_back  ; 65447 (0xffa7)

lri $AR1,    #0x5c53
lri $IX1,    #0x0eb2
lri $WR1,    #0x298d
cw 0x15
call send_back  ; 65448 (0xffa8)

lri $AR1,    #0x9236
lri $IX1,    #0x94ca
lri $WR1,    #0x4659
cw 0x15
call send_back  ; 65449 (0xffa9)

lri $AR1,    #0xc6d8
lri $IX1,    #0x73c6
lri $WR1,    #0x6b03
cw 0x15
call send_back  ; 65450 (0xffaa)

lri $AR1,    #0x618f
lri $IX1,    #0x46da
lri $WR1,    #0x56e3
cw 0x15
call send_back  ; 65451 (0xffab)

lri $AR1,    #0x96c0
lri $IX1,    #0xfe64
lri $WR1,    #0xaaf0
cw 0x15
call send_back  ; 65452 (0xffac)

lri $AR1,    #0x0817
lri $IX1,    #0xfdaa
lri $WR1,    #0x7b90
cw 0x15
call send_back  ; 65453 (0xffad)

lri $AR1,    #0x56c4
lri $IX1,    #0xca26
lri $WR1,    #0xc2ec
cw 0x15
call send_back  ; 65454 (0xffae)

lri $AR1,    #0x8f96
lri $IX1,    #0x85f6
lri $WR1,    #0x80d8
cw 0x15
call send_back  ; 65455 (0xffaf)

lri $AR1,    #0x904a
lri $IX1,    #0xfbc0
lri $WR1,    #0x7ae5
cw 0x15
call send_back  ; 65456 (0xffb0)

lri $AR1,    #0x90ce
lri $IX1,    #0x1a9c
lri $WR1,    #0xd8aa
cw 0x15
call send_back  ; 65457 (0xffb1)

lri $AR1,    #0x3ae2
lri $IX1,    #0x853e
lri $WR1,    #0x25c8
cw 0x15
call send_back  ; 65458 (0xffb2)

lri $AR1,    #0x8dc4
lri $IX1,    #0x681c
lri $WR1,    #0x74d6
cw 0x15
call send_back  ; 65459 (0xffb3)

lri $AR1,    #0x9358
lri $IX1,    #0x46b2
lri $WR1,    #0xd3a5
cw 0x15
call send_back  ; 65460 (0xffb4)

lri $AR1,    #0x8788
lri $IX1,    #0xf892
lri $WR1,    #0xdaf9
cw 0x15
call send_back  ; 65461 (0xffb5)

lri $AR1,    #0xe234
lri $IX1,    #0xc37a
lri $WR1,    #0xc15a
cw 0x15
call send_back  ; 65462 (0xffb6)

lri $AR1,    #0x977e
lri $IX1,    #0x8024
lri $WR1,    #0xd9df
cw 0x15
call send_back  ; 65463 (0xffb7)

lri $AR1,    #0xb9c6
lri $IX1,    #0x23ea
lri $WR1,    #0xadbc
cw 0x15
call send_back  ; 65464 (0xffb8)

lri $AR1,    #0x5426
lri $IX1,    #0x0204
lri $WR1,    #0x486e
cw 0x15
call send_back  ; 65465 (0xffb9)

lri $AR1,    #0xb3b3
lri $IX1,    #0xbb8c
lri $WR1,    #0xbc3d
cw 0x15
call send_back  ; 65466 (0xffba)

lri $AR1,    #0x4965
lri $IX1,    #0x45e8
lri $WR1,    #0x360d
cw 0x15
call send_back  ; 65467 (0xffbb)

lri $AR1,    #0xb5ee
lri $IX1,    #0xcbdc
lri $WR1,    #0x8d14
cw 0x15
call send_back  ; 65468 (0xffbc)

lri $AR1,    #0xcc47
lri $IX1,    #0x95f6
lri $WR1,    #0xf48d
cw 0x15
call send_back  ; 65469 (0xffbd)

lri $AR1,    #0x4751
lri $IX1,    #0xbb72
lri $WR1,    #0xb2e5
cw 0x15
call send_back  ; 65470 (0xffbe)

lri $AR1,    #0x7252
lri $IX1,    #0x3d4e
lri $WR1,    #0x638f
cw 0x15
call send_back  ; 65471 (0xffbf)

lri $AR1,    #0x7b9c
lri $IX1,    #0x79ca
lri $WR1,    #0xadeb
cw 0x15
call send_back  ; 65472 (0xffc0)

lri $AR1,    #0xf43f
lri $IX1,    #0xbef2
lri $WR1,    #0x6572
cw 0x15
call send_back  ; 65473 (0xffc1)

lri $AR1,    #0x7efb
lri $IX1,    #0x4770
lri $WR1,    #0x149e
cw 0x15
call send_back  ; 65474 (0xffc2)

lri $AR1,    #0x4454
lri $IX1,    #0x3d46
lri $WR1,    #0x65b1
cw 0x15
call send_back  ; 65475 (0xffc3)

lri $AR1,    #0xc916
lri $IX1,    #0x9abc
lri $WR1,    #0x91d9
cw 0x15
call send_back  ; 65476 (0xffc4)

lri $AR1,    #0x201a
lri $IX1,    #0x0a08
lri $WR1,    #0x58d4
cw 0x15
call send_back  ; 65477 (0xffc5)

lri $AR1,    #0x7f91
lri $IX1,    #0x590e
lri $WR1,    #0x608a
cw 0x15
call send_back  ; 65478 (0xffc6)

lri $AR1,    #0x65b4
lri $IX1,    #0xd6c6
lri $WR1,    #0x9dd2
cw 0x15
call send_back  ; 65479 (0xffc7)

lri $AR1,    #0x901b
lri $IX1,    #0x1c82
lri $WR1,    #0xeccf
cw 0x15
call send_back  ; 65480 (0xffc8)

lri $AR1,    #0x749c
lri $IX1,    #0x7dd2
lri $WR1,    #0x28ff
cw 0x15
call send_back  ; 65481 (0xffc9)

lri $AR1,    #0x89ef
lri $IX1,    #0xbe24
lri $WR1,    #0x42a4
cw 0x15
call send_back  ; 65482 (0xffca)

lri $AR1,    #0xe1f2
lri $IX1,    #0xdbc8
lri $WR1,    #0xe06d
cw 0x15
call send_back  ; 65483 (0xffcb)

lri $AR1,    #0x3ee1
lri $IX1,    #0xdcb2
lri $WR1,    #0x7210
cw 0x15
call send_back  ; 65484 (0xffcc)

lri $AR1,    #0xc841
lri $IX1,    #0xb174
lri $WR1,    #0x91d9
cw 0x15
call send_back  ; 65485 (0xffcd)

lri $AR1,    #0xb3e5
lri $IX1,    #0x97ca
lri $WR1,    #0x10c0
cw 0x15
call send_back  ; 65486 (0xffce)

lri $AR1,    #0x7ac7
lri $IX1,    #0x0656
lri $WR1,    #0x6a12
cw 0x15
call send_back  ; 65487 (0xffcf)

lri $AR1,    #0x6916
lri $IX1,    #0x37ac
lri $WR1,    #0x813d
cw 0x15
call send_back  ; 65488 (0xffd0)

lri $AR1,    #0xe43e
lri $IX1,    #0x0394
lri $WR1,    #0x55df
cw 0x15
call send_back  ; 65489 (0xffd1)

lri $AR1,    #0x813e
lri $IX1,    #0xf968
lri $WR1,    #0x278a
cw 0x15
call send_back  ; 65490 (0xffd2)

lri $AR1,    #0x5923
lri $IX1,    #0xbf7a
lri $WR1,    #0xb46a
cw 0x15
call send_back  ; 65491 (0xffd3)

lri $AR1,    #0x50e1
lri $IX1,    #0xb79a
lri $WR1,    #0xb34f
cw 0x15
call send_back  ; 65492 (0xffd4)

lri $AR1,    #0x257e
lri $IX1,    #0xf168
lri $WR1,    #0xc326
cw 0x15
call send_back  ; 65493 (0xffd5)

lri $AR1,    #0xdcbe
lri $IX1,    #0xa7a6
lri $WR1,    #0xa783
cw 0x15
call send_back  ; 65494 (0xffd6)

lri $AR1,    #0x9e2d
lri $IX1,    #0x064c
lri $WR1,    #0xab37
cw 0x15
call send_back  ; 65495 (0xffd7)

lri $AR1,    #0xcfdf
lri $IX1,    #0xe36a
lri $WR1,    #0x4794
cw 0x15
call send_back  ; 65496 (0xffd8)

lri $AR1,    #0x7da6
lri $IX1,    #0x8da6
lri $WR1,    #0x985d
cw 0x15
call send_back  ; 65497 (0xffd9)

lri $AR1,    #0x711d
lri $IX1,    #0xf77a
lri $WR1,    #0x9209
cw 0x15
call send_back  ; 65498 (0xffda)

lri $AR1,    #0x5447
lri $IX1,    #0x76ea
lri $WR1,    #0x4153
cw 0x15
call send_back  ; 65499 (0xffdb)

lri $AR1,    #0xa027
lri $IX1,    #0x2dd4
lri $WR1,    #0xf0b2
cw 0x15
call send_back  ; 65500 (0xffdc)

lri $AR1,    #0xd413
lri $IX1,    #0x1790
lri $WR1,    #0xc9c6
cw 0x15
call send_back  ; 65501 (0xffdd)

lri $AR1,    #0xe20e
lri $IX1,    #0xcd1e
lri $WR1,    #0x464d
cw 0x15
call send_back  ; 65502 (0xffde)

lri $AR1,    #0xc007
lri $IX1,    #0x717a
lri $WR1,    #0xe5af
cw 0x15
call send_back  ; 65503 (0xffdf)

lri $AR1,    #0x8548
lri $IX1,    #0x0458
lri $WR1,    #0x81aa
cw 0x15
call send_back  ; 65504 (0xffe0)

lri $AR1,    #0x46d9
lri $IX1,    #0xb1f2
lri $WR1,    #0x2641
cw 0x15
call send_back  ; 65505 (0xffe1)

lri $AR1,    #0x653b
lri $IX1,    #0xbb18
lri $WR1,    #0x5e5b
cw 0x15
call send_back  ; 65506 (0xffe2)

lri $AR1,    #0x1141
lri $IX1,    #0x6128
lri $WR1,    #0x5852
cw 0x15
call send_back  ; 65507 (0xffe3)

lri $AR1,    #0x5547
lri $IX1,    #0xfe3e
lri $WR1,    #0x7ad3
cw 0x15
call send_back  ; 65508 (0xffe4)

lri $AR1,    #0xcbc3
lri $IX1,    #0x3a1e
lri $WR1,    #0x5c41
cw 0x15
call send_back  ; 65509 (0xffe5)

lri $AR1,    #0xbb48
lri $IX1,    #0x4130
lri $WR1,    #0x6c16
cw 0x15
call send_back  ; 65510 (0xffe6)

lri $AR1,    #0x73f9
lri $IX1,    #0x232a
lri $WR1,    #0x5f5f
cw 0x15
call send_back  ; 65511 (0xffe7)

lri $AR1,    #0xe1a3
lri $IX1,    #0x2b94
lri $WR1,    #0x76dd
cw 0x15
call send_back  ; 65512 (0xffe8)

lri $AR1,    #0xb156
lri $IX1,    #0x3eec
lri $WR1,    #0x5ed6
cw 0x15
call send_back  ; 65513 (0xffe9)

lri $AR1,    #0x08cd
lri $IX1,    #0x2b7e
lri $WR1,    #0x963b
cw 0x15
call send_back  ; 65514 (0xffea)

lri $AR1,    #0x8172
lri $IX1,    #0x8dc0
lri $WR1,    #0x5c11
cw 0x15
call send_back  ; 65515 (0xffeb)

lri $AR1,    #0x4052
lri $IX1,    #0x8434
lri $WR1,    #0x77cd
cw 0x15
call send_back  ; 65516 (0xffec)

lri $AR1,    #0x7fce
lri $IX1,    #0x17be
lri $WR1,    #0xaaa4
cw 0x15
call send_back  ; 65517 (0xffed)

lri $AR1,    #0x8f5d
lri $IX1,    #0x115c
lri $WR1,    #0x955b
cw 0x15
call send_back  ; 65518 (0xffee)

lri $AR1,    #0x9123
lri $IX1,    #0x172c
lri $WR1,    #0xbfb6
cw 0x15
call send_back  ; 65519 (0xffef)

lri $AR1,    #0x74c2
lri $IX1,    #0x76bc
lri $WR1,    #0x9403
cw 0x15
call send_back  ; 65520 (0xfff0)

lri $AR1,    #0xba21
lri $IX1,    #0x1b7e
lri $WR1,    #0x6ae7
cw 0x15
call send_back  ; 65521 (0xfff1)

lri $AR1,    #0xc683
lri $IX1,    #0xf46e
lri $WR1,    #0x90e1
cw 0x15
call send_back  ; 65522 (0xfff2)

lri $AR1,    #0x69bd
lri $IX1,    #0x9cc0
lri $WR1,    #0x60b8
cw 0x15
call send_back  ; 65523 (0xfff3)

lri $AR1,    #0x78da
lri $IX1,    #0x9796
lri $WR1,    #0x8338
cw 0x15
call send_back  ; 65524 (0xfff4)

lri $AR1,    #0x7ef8
lri $IX1,    #0xf79c
lri $WR1,    #0x7e75
cw 0x15
call send_back  ; 65525 (0xfff5)

lri $AR1,    #0xd4c0
lri $IX1,    #0xff9e
lri $WR1,    #0x5c13
cw 0x15
call send_back  ; 65526 (0xfff6)

lri $AR1,    #0x5228
lri $IX1,    #0x49ce
lri $WR1,    #0xaf9a
cw 0x15
call send_back  ; 65527 (0xfff7)

lri $AR1,    #0xa5f6
lri $IX1,    #0x6ff0
lri $WR1,    #0x8b78
cw 0x15
call send_back  ; 65528 (0xfff8)

lri $AR1,    #0x89ba
lri $IX1,    #0x2716
lri $WR1,    #0xdcbc
cw 0x15
call send_back  ; 65529 (0xfff9)

lri $AR1,    #0x688e
lri $IX1,    #0x6624
lri $WR1,    #0x930a
cw 0x15
call send_back  ; 65530 (0xfffa)

lri $AR1,    #0x8284
lri $IX1,    #0x9eb6
lri $WR1,    #0x4bf4
cw 0x15
call send_back  ; 65531 (0xfffb)

lri $AR1,    #0x7df0
lri $IX1,    #0x6cc2
lri $WR1,    #0xce2e
cw 0x15
call send_back  ; 65532 (0xfffc)

lri $AR1,    #0x9383
lri $IX1,    #0x896a
lri $WR1,    #0x5ac1
cw 0x15
call send_back  ; 65533 (0xfffd)

lri $AR1,    #0xf162
lri $IX1,    #0x6276
lri $WR1,    #0x97ba
cw 0x15
call send_back  ; 65534 (0xfffe)

lri $AR1,    #0x752a
lri $IX1,    #0x97de
lri $WR1,    #0x7977
cw 0x15
call send_back  ; 65535 (0xffff)

lri $AR1,    #0x5414
lri $IX1,    #0xedca
lri $WR1,    #0x7518
cw 0x15
call send_back  ; 65536 (0x10000)

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