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

lri $AR1,    #0xaa46
lri $IX1,    #0x966c
lri $WR1,    #0x0fb0
cw 0x15
call send_back  ; 31021 (0x792d)

lri $AR1,    #0xa190
lri $IX1,    #0x91c2
lri $WR1,    #0x0d3c
cw 0x15
call send_back  ; 31022 (0x792e)

lri $AR1,    #0x4524
lri $IX1,    #0x5a1a
lri $WR1,    #0x7962
cw 0x15
call send_back  ; 31023 (0x792f)

lri $AR1,    #0x8164
lri $IX1,    #0x8e58
lri $WR1,    #0x3e6a
cw 0x15
call send_back  ; 31024 (0x7930)

lri $AR1,    #0x9f42
lri $IX1,    #0x9c6e
lri $WR1,    #0x687b
cw 0x15
call send_back  ; 31025 (0x7931)

lri $AR1,    #0x1ce1
lri $IX1,    #0x878c
lri $WR1,    #0x4caf
cw 0x15
call send_back  ; 31026 (0x7932)

lri $AR1,    #0xaa43
lri $IX1,    #0x5d46
lri $WR1,    #0x88ee
cw 0x15
call send_back  ; 31027 (0x7933)

lri $AR1,    #0x8f71
lri $IX1,    #0xc9d2
lri $WR1,    #0xcd3c
cw 0x15
call send_back  ; 31028 (0x7934)

lri $AR1,    #0x5cd8
lri $IX1,    #0xc41c
lri $WR1,    #0x7876
cw 0x15
call send_back  ; 31029 (0x7935)

lri $AR1,    #0x963e
lri $IX1,    #0xfee4
lri $WR1,    #0xb011
cw 0x15
call send_back  ; 31030 (0x7936)

lri $AR1,    #0x6c06
lri $IX1,    #0xcc7a
lri $WR1,    #0x9bfe
cw 0x15
call send_back  ; 31031 (0x7937)

lri $AR1,    #0x6e37
lri $IX1,    #0x8f76
lri $WR1,    #0x3520
cw 0x15
call send_back  ; 31032 (0x7938)

lri $AR1,    #0xcfed
lri $IX1,    #0xcaf0
lri $WR1,    #0x7e8d
cw 0x15
call send_back  ; 31033 (0x7939)

lri $AR1,    #0xb1a0
lri $IX1,    #0x8978
lri $WR1,    #0xeefd
cw 0x15
call send_back  ; 31034 (0x793a)

lri $AR1,    #0x5c0f
lri $IX1,    #0x4292
lri $WR1,    #0xa1aa
cw 0x15
call send_back  ; 31035 (0x793b)

lri $AR1,    #0x3d0e
lri $IX1,    #0xc2c0
lri $WR1,    #0x7afd
cw 0x15
call send_back  ; 31036 (0x793c)

lri $AR1,    #0xb31c
lri $IX1,    #0x02ec
lri $WR1,    #0xa745
cw 0x15
call send_back  ; 31037 (0x793d)

lri $AR1,    #0xa3fa
lri $IX1,    #0x704a
lri $WR1,    #0x96e6
cw 0x15
call send_back  ; 31038 (0x793e)

lri $AR1,    #0xde34
lri $IX1,    #0x0676
lri $WR1,    #0x3d23
cw 0x15
call send_back  ; 31039 (0x793f)

lri $AR1,    #0xbcc3
lri $IX1,    #0xe9ee
lri $WR1,    #0x3c11
cw 0x15
call send_back  ; 31040 (0x7940)

lri $AR1,    #0x4fb8
lri $IX1,    #0x0998
lri $WR1,    #0x31bd
cw 0x15
call send_back  ; 31041 (0x7941)

lri $AR1,    #0xcc37
lri $IX1,    #0xd298
lri $WR1,    #0xe817
cw 0x15
call send_back  ; 31042 (0x7942)

lri $AR1,    #0x9988
lri $IX1,    #0x5212
lri $WR1,    #0x1ab3
cw 0x15
call send_back  ; 31043 (0x7943)

lri $AR1,    #0xd89d
lri $IX1,    #0x5d06
lri $WR1,    #0x3af4
cw 0x15
call send_back  ; 31044 (0x7944)

lri $AR1,    #0x9ed0
lri $IX1,    #0x9f06
lri $WR1,    #0x74a9
cw 0x15
call send_back  ; 31045 (0x7945)

lri $AR1,    #0x2c39
lri $IX1,    #0xe4f2
lri $WR1,    #0x92b3
cw 0x15
call send_back  ; 31046 (0x7946)

lri $AR1,    #0x8952
lri $IX1,    #0xb95e
lri $WR1,    #0xa4ba
cw 0x15
call send_back  ; 31047 (0x7947)

lri $AR1,    #0x8f58
lri $IX1,    #0x94da
lri $WR1,    #0xcc94
cw 0x15
call send_back  ; 31048 (0x7948)

lri $AR1,    #0x4a27
lri $IX1,    #0x9cd2
lri $WR1,    #0x4357
cw 0x15
call send_back  ; 31049 (0x7949)

lri $AR1,    #0xc1d9
lri $IX1,    #0x502a
lri $WR1,    #0x53b5
cw 0x15
call send_back  ; 31050 (0x794a)

lri $AR1,    #0x6e11
lri $IX1,    #0xb156
lri $WR1,    #0x98b3
cw 0x15
call send_back  ; 31051 (0x794b)

lri $AR1,    #0x3c2e
lri $IX1,    #0x9a00
lri $WR1,    #0x253a
cw 0x15
call send_back  ; 31052 (0x794c)

lri $AR1,    #0x8d3a
lri $IX1,    #0x0d1a
lri $WR1,    #0x32ab
cw 0x15
call send_back  ; 31053 (0x794d)

lri $AR1,    #0xbfeb
lri $IX1,    #0xb05c
lri $WR1,    #0x71f2
cw 0x15
call send_back  ; 31054 (0x794e)

lri $AR1,    #0x9e80
lri $IX1,    #0x3700
lri $WR1,    #0x7c2e
cw 0x15
call send_back  ; 31055 (0x794f)

lri $AR1,    #0xbfca
lri $IX1,    #0x93da
lri $WR1,    #0x8584
cw 0x15
call send_back  ; 31056 (0x7950)

lri $AR1,    #0x763b
lri $IX1,    #0x618c
lri $WR1,    #0xbe23
cw 0x15
call send_back  ; 31057 (0x7951)

lri $AR1,    #0xa738
lri $IX1,    #0x33ec
lri $WR1,    #0x1b13
cw 0x15
call send_back  ; 31058 (0x7952)

lri $AR1,    #0xb88c
lri $IX1,    #0x966a
lri $WR1,    #0x71d4
cw 0x15
call send_back  ; 31059 (0x7953)

lri $AR1,    #0x8954
lri $IX1,    #0x7790
lri $WR1,    #0x4769
cw 0x15
call send_back  ; 31060 (0x7954)

lri $AR1,    #0x8719
lri $IX1,    #0xca58
lri $WR1,    #0xccd5
cw 0x15
call send_back  ; 31061 (0x7955)

lri $AR1,    #0x3f82
lri $IX1,    #0x5a86
lri $WR1,    #0xa09d
cw 0x15
call send_back  ; 31062 (0x7956)

lri $AR1,    #0xb25f
lri $IX1,    #0x51a8
lri $WR1,    #0x6e68
cw 0x15
call send_back  ; 31063 (0x7957)

lri $AR1,    #0x7f6a
lri $IX1,    #0xd70e
lri $WR1,    #0xcb3a
cw 0x15
call send_back  ; 31064 (0x7958)

lri $AR1,    #0xb677
lri $IX1,    #0xad36
lri $WR1,    #0x966d
cw 0x15
call send_back  ; 31065 (0x7959)

lri $AR1,    #0x7084
lri $IX1,    #0xd41c
lri $WR1,    #0x14eb
cw 0x15
call send_back  ; 31066 (0x795a)

lri $AR1,    #0xcb5b
lri $IX1,    #0x27dc
lri $WR1,    #0x4dc2
cw 0x15
call send_back  ; 31067 (0x795b)

lri $AR1,    #0x4921
lri $IX1,    #0xd00e
lri $WR1,    #0xc49e
cw 0x15
call send_back  ; 31068 (0x795c)

lri $AR1,    #0x50b1
lri $IX1,    #0x3c6a
lri $WR1,    #0x6831
cw 0x15
call send_back  ; 31069 (0x795d)

lri $AR1,    #0x7af0
lri $IX1,    #0x7fea
lri $WR1,    #0xc82f
cw 0x15
call send_back  ; 31070 (0x795e)

lri $AR1,    #0xdd15
lri $IX1,    #0x3c28
lri $WR1,    #0x47d3
cw 0x15
call send_back  ; 31071 (0x795f)

lri $AR1,    #0x770a
lri $IX1,    #0x1b12
lri $WR1,    #0x6792
cw 0x15
call send_back  ; 31072 (0x7960)

lri $AR1,    #0x38dc
lri $IX1,    #0x2dbe
lri $WR1,    #0xc9fd
cw 0x15
call send_back  ; 31073 (0x7961)

lri $AR1,    #0x9171
lri $IX1,    #0x8b76
lri $WR1,    #0xa576
cw 0x15
call send_back  ; 31074 (0x7962)

lri $AR1,    #0x8c5f
lri $IX1,    #0x5cba
lri $WR1,    #0x45a6
cw 0x15
call send_back  ; 31075 (0x7963)

lri $AR1,    #0x8c28
lri $IX1,    #0x3a5e
lri $WR1,    #0x756f
cw 0x15
call send_back  ; 31076 (0x7964)

lri $AR1,    #0x89c3
lri $IX1,    #0x9182
lri $WR1,    #0x834a
cw 0x15
call send_back  ; 31077 (0x7965)

lri $AR1,    #0xd1a9
lri $IX1,    #0xb18c
lri $WR1,    #0x6fa1
cw 0x15
call send_back  ; 31078 (0x7966)

lri $AR1,    #0x5a41
lri $IX1,    #0x69ca
lri $WR1,    #0x965a
cw 0x15
call send_back  ; 31079 (0x7967)

lri $AR1,    #0xe6fb
lri $IX1,    #0xc902
lri $WR1,    #0xa9e4
cw 0x15
call send_back  ; 31080 (0x7968)

lri $AR1,    #0x96ec
lri $IX1,    #0xc990
lri $WR1,    #0x8020
cw 0x15
call send_back  ; 31081 (0x7969)

lri $AR1,    #0x9d31
lri $IX1,    #0x993c
lri $WR1,    #0xde6e
cw 0x15
call send_back  ; 31082 (0x796a)

lri $AR1,    #0x94fa
lri $IX1,    #0xdc94
lri $WR1,    #0x8428
cw 0x15
call send_back  ; 31083 (0x796b)

lri $AR1,    #0x8a79
lri $IX1,    #0xe9da
lri $WR1,    #0x87f9
cw 0x15
call send_back  ; 31084 (0x796c)

lri $AR1,    #0x4d91
lri $IX1,    #0xa04a
lri $WR1,    #0x9627
cw 0x15
call send_back  ; 31085 (0x796d)

lri $AR1,    #0x529d
lri $IX1,    #0x54e4
lri $WR1,    #0x9b6e
cw 0x15
call send_back  ; 31086 (0x796e)

lri $AR1,    #0x2905
lri $IX1,    #0x6e5e
lri $WR1,    #0xc964
cw 0x15
call send_back  ; 31087 (0x796f)

lri $AR1,    #0x4710
lri $IX1,    #0xd680
lri $WR1,    #0x870c
cw 0x15
call send_back  ; 31088 (0x7970)

lri $AR1,    #0x75a8
lri $IX1,    #0x7f9c
lri $WR1,    #0xa99d
cw 0x15
call send_back  ; 31089 (0x7971)

lri $AR1,    #0xe675
lri $IX1,    #0x0128
lri $WR1,    #0x9f0d
cw 0x15
call send_back  ; 31090 (0x7972)

lri $AR1,    #0xd210
lri $IX1,    #0xdf76
lri $WR1,    #0x6575
cw 0x15
call send_back  ; 31091 (0x7973)

lri $AR1,    #0xc3a7
lri $IX1,    #0x8e60
lri $WR1,    #0x1fd4
cw 0x15
call send_back  ; 31092 (0x7974)

lri $AR1,    #0x52de
lri $IX1,    #0xc7f4
lri $WR1,    #0xb256
cw 0x15
call send_back  ; 31093 (0x7975)

lri $AR1,    #0x5c3e
lri $IX1,    #0x83f4
lri $WR1,    #0x6d8f
cw 0x15
call send_back  ; 31094 (0x7976)

lri $AR1,    #0xac04
lri $IX1,    #0xde30
lri $WR1,    #0x51dd
cw 0x15
call send_back  ; 31095 (0x7977)

lri $AR1,    #0x669b
lri $IX1,    #0xa5aa
lri $WR1,    #0xb961
cw 0x15
call send_back  ; 31096 (0x7978)

lri $AR1,    #0x2595
lri $IX1,    #0x474e
lri $WR1,    #0xa0bf
cw 0x15
call send_back  ; 31097 (0x7979)

lri $AR1,    #0x9f70
lri $IX1,    #0x6b7c
lri $WR1,    #0xb40e
cw 0x15
call send_back  ; 31098 (0x797a)

lri $AR1,    #0x2402
lri $IX1,    #0x0dee
lri $WR1,    #0x9734
cw 0x15
call send_back  ; 31099 (0x797b)

lri $AR1,    #0x9ec4
lri $IX1,    #0x3452
lri $WR1,    #0xf61b
cw 0x15
call send_back  ; 31100 (0x797c)

lri $AR1,    #0x8bea
lri $IX1,    #0xd02a
lri $WR1,    #0xa2de
cw 0x15
call send_back  ; 31101 (0x797d)

lri $AR1,    #0x3c7f
lri $IX1,    #0xed38
lri $WR1,    #0x457e
cw 0x15
call send_back  ; 31102 (0x797e)

lri $AR1,    #0xc960
lri $IX1,    #0x2e12
lri $WR1,    #0x422e
cw 0x15
call send_back  ; 31103 (0x797f)

lri $AR1,    #0x8c6f
lri $IX1,    #0xe51a
lri $WR1,    #0x60c0
cw 0x15
call send_back  ; 31104 (0x7980)

lri $AR1,    #0x42b2
lri $IX1,    #0xf094
lri $WR1,    #0xc950
cw 0x15
call send_back  ; 31105 (0x7981)

lri $AR1,    #0x79d3
lri $IX1,    #0x04f2
lri $WR1,    #0x77aa
cw 0x15
call send_back  ; 31106 (0x7982)

lri $AR1,    #0x7eb1
lri $IX1,    #0x610a
lri $WR1,    #0x3892
cw 0x15
call send_back  ; 31107 (0x7983)

lri $AR1,    #0x8a62
lri $IX1,    #0x248a
lri $WR1,    #0x7968
cw 0x15
call send_back  ; 31108 (0x7984)

lri $AR1,    #0xc679
lri $IX1,    #0xc91e
lri $WR1,    #0x8c4a
cw 0x15
call send_back  ; 31109 (0x7985)

lri $AR1,    #0x50d1
lri $IX1,    #0xb3b0
lri $WR1,    #0xe035
cw 0x15
call send_back  ; 31110 (0x7986)

lri $AR1,    #0x8abb
lri $IX1,    #0x934e
lri $WR1,    #0x6e42
cw 0x15
call send_back  ; 31111 (0x7987)

lri $AR1,    #0x96dd
lri $IX1,    #0x6ff0
lri $WR1,    #0xa283
cw 0x15
call send_back  ; 31112 (0x7988)

lri $AR1,    #0xd483
lri $IX1,    #0x03e0
lri $WR1,    #0x309a
cw 0x15
call send_back  ; 31113 (0x7989)

lri $AR1,    #0xc6d1
lri $IX1,    #0x5eca
lri $WR1,    #0x719c
cw 0x15
call send_back  ; 31114 (0x798a)

lri $AR1,    #0x897f
lri $IX1,    #0x025a
lri $WR1,    #0x7a37
cw 0x15
call send_back  ; 31115 (0x798b)

lri $AR1,    #0x9c93
lri $IX1,    #0xc466
lri $WR1,    #0x6dd5
cw 0x15
call send_back  ; 31116 (0x798c)

lri $AR1,    #0x4bcc
lri $IX1,    #0xeb7a
lri $WR1,    #0x0ca5
cw 0x15
call send_back  ; 31117 (0x798d)

lri $AR1,    #0x2627
lri $IX1,    #0x4ed8
lri $WR1,    #0x7830
cw 0x15
call send_back  ; 31118 (0x798e)

lri $AR1,    #0x3d37
lri $IX1,    #0xe3b4
lri $WR1,    #0x8b83
cw 0x15
call send_back  ; 31119 (0x798f)

lri $AR1,    #0x9bb6
lri $IX1,    #0x2dcc
lri $WR1,    #0xc981
cw 0x15
call send_back  ; 31120 (0x7990)

lri $AR1,    #0x6e09
lri $IX1,    #0xa21a
lri $WR1,    #0xad68
cw 0x15
call send_back  ; 31121 (0x7991)

lri $AR1,    #0x971b
lri $IX1,    #0x4ec2
lri $WR1,    #0x771d
cw 0x15
call send_back  ; 31122 (0x7992)

lri $AR1,    #0x3f50
lri $IX1,    #0x2bea
lri $WR1,    #0x3e4e
cw 0x15
call send_back  ; 31123 (0x7993)

lri $AR1,    #0xb2e9
lri $IX1,    #0x75c8
lri $WR1,    #0x8cfc
cw 0x15
call send_back  ; 31124 (0x7994)

lri $AR1,    #0x80a5
lri $IX1,    #0x7870
lri $WR1,    #0xdb77
cw 0x15
call send_back  ; 31125 (0x7995)

lri $AR1,    #0x98f1
lri $IX1,    #0x6ab0
lri $WR1,    #0x6566
cw 0x15
call send_back  ; 31126 (0x7996)

lri $AR1,    #0x9175
lri $IX1,    #0x7590
lri $WR1,    #0x50d9
cw 0x15
call send_back  ; 31127 (0x7997)

lri $AR1,    #0x884d
lri $IX1,    #0xf2ca
lri $WR1,    #0x6616
cw 0x15
call send_back  ; 31128 (0x7998)

lri $AR1,    #0xcdc6
lri $IX1,    #0x64b6
lri $WR1,    #0x8002
cw 0x15
call send_back  ; 31129 (0x7999)

lri $AR1,    #0xdae4
lri $IX1,    #0xcf16
lri $WR1,    #0xcae7
cw 0x15
call send_back  ; 31130 (0x799a)

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