blob: 304e4b820ba2f73743f52a8f7ef99cbf8f54a6af (
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
|
;
; Basic parsing and label handling
;
; Comments
;
list on
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 11110010b
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
option list
cpu 6502
option list
option zp,true
option zp,on
option zp,yes
option zp,false
option zp,off
option zp,no
option +zp
option -zp
one equ 1
two fred ONE * 2
true1 equ one == 1
false1 equ one != 1
endaddr:end
this is ignored
|