summaryrefslogtreecommitdiff
path: root/Source/DSPSpy/tests/andc_ls_test.ds
blob: 9967f7cfcf13bf7d7813fbef3611d47cb7040c5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
incdir "tests"
include "dsp_base.inc"

;    Test for andc'ls
;    
;    3d80      andc'ls     $AC1.M : $AX0.L, $AC0.M

test_main:
	clr $ACC0
	clr $ACC1
	lri $AX0.L, #0x0000
	lri $AR0, #0x0FF0
	lri $AR3, #0x0FF0

	lri $AC0.M, #0x0004
	lri $AC1.M, #0x1234
	cw 0x3d80 ; andc'ls $AC1.M : $AX0.L, $AC0.M

	call send_back


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