aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t_6804/t_6804.asm
blob: 78da533c446dd1cc397d5e65d5cf274fd2249c8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
		cpu	6804

		include	stddef04.inc

		clra
		clrx
		clry
		coma
		rola
		asla
		inca
		incx
		incy
		deca
		decx
		decy
		tax
		tay
		txa
		tya
		rts
		rti
		nop

targ:		beq	targ
		bne	targ
		blo	targ
		bcs	targ
		bhs	targ
		bcc	targ

		jmp	$123
		jsr	$456

		add	(x)
		add	(y)
		add	$30
		add	#$40
		sub	(x)
		sub	(y)
		sub	$50
		sub	#$60
		cmp	(x)
		cmp	(y)
		cmp	$70
		cmp	#$80
		and	(x)
		and	(y)
		and	$90
		and	#$a0

		lda	(x)
		sta	(y)
		lda	$82
		sta	$40
		lda	#55

		ldxi	#0
		ldyi	#-1

		mvi	$12,#$45

		dec	$82
		inc	$40
		dec	(y)
		inc	(x)

		bset	1,$12
		bclr    3,$34

		brset	5,$56,targ
		brclr	7,$78,targ