aboutsummaryrefslogtreecommitdiffstats
path: root/tests/100-instructions/insn_INC.awl
blob: 625e41d26fc04e58036f22ed40dfa4b09920cffb (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
	L		0
	INC		1
	__ASSERT==	__ACCU 1,	1

	L		1
	INC		0
	__ASSERT==	__ACCU 1,	1

	L		1
	INC		1
	__ASSERT==	__ACCU 1,	2

	L		0
	INC		255
	__ASSERT==	__ACCU 1,	255

	L		1
	INC		255
	__ASSERT==	__ACCU 1,	0

	L		2
	INC		255
	__ASSERT==	__ACCU 1,	1

	L		DW#16#00000100
	INC		255
	__ASSERT==	__ACCU 1,	DW#16#000001FF

	L		DW#16#000001FF
	INC		255
	__ASSERT==	__ACCU 1,	DW#16#000001FE

	L		0
	DEC		1
	__ASSERT==	__ACCU 1,	255

	L		1
	DEC		0
	__ASSERT==	__ACCU 1,	1

	L		1
	DEC		1
	__ASSERT==	__ACCU 1,	0

	L		0
	DEC		255
	__ASSERT==	__ACCU 1,	1

	L		1
	DEC		255
	__ASSERT==	__ACCU 1,	2

	L		2
	DEC		255
	__ASSERT==	__ACCU 1,	3

	L		DW#16#00000100
	DEC		255
	__ASSERT==	__ACCU 1,	DW#16#00000101

	L		DW#16#000001FF
	DEC		255
	__ASSERT==	__ACCU 1,	DW#16#00000100


	CALL SFC 46 // STOP CPU
bues.ch cgit interface