aboutsummaryrefslogtreecommitdiff
path: root/src/test/1
blob: 724172f7dbcbfceaa9ec049ae2e20e040d476e7a (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
73
74
75
76
77
78
79
80
81
;
; Basic parsing and label handling
;
; Comments
;
		option +list
		option list-labels,on

		alias	fred,equ

label0:		; First label - should default to zero

label1	org	$8000
.local_1	org 8001h
.local_2	org 8002

label2:	equ	11110101b
.local2_1
.local_dup

	org	0x8100
pc_test1:	equ	$
pc_test_minus_100:	equ	$ - $100

label3:
.local3_1
.local_dup

forward:	equ	bin1 + bin2 + hex1

expr1_7	equ	1 + 2 * 3
expr2_9	equ	{1 + 2} * 3

bin1:	equ	11110101b
bin2:	equ	%11110010
hex1:	equ	$1234
hex2	equ	1234h
hex3:	equ	0x1234
oct:	equ	0177
.dec	equ	65535
.dec2:	equ	123456

align_test: org	$9001

	align	$10
should_end_10h:

	align	$100
should_end_100h:

	cpu	z80

	cpu	6502

	option	zero-page,true
	option	zero-page,on
	option	zero-page,yes
	option	zero-page,false
	option	zero-page,off
	option	zero-page,no

	option	+zero-page
	option	-zero-page

one	equ	1
two	fred	ONE * 2

true1	equ	one == 1
false1	equ	one != 1

true2	equ	1 == 1 && 2 == 2
true3	equ	1 == 2 || 2 == 2
false2	equ	1 == 2 && 2 == 2
false3	equ	1 == 2 || 2 == 3

and1	equ	0x8123 & 256
or1	equ	0x8123 | 256

endaddr:end

this is ignored