mirror of
https://github.com/ksherlock/wdc-utils.git
synced 2024-12-12 04:29:05 +00:00
label test.
This commit is contained in:
parent
14eb08e05e
commit
fefdbb5ad0
63
samples/labels.asm
Normal file
63
samples/labels.asm
Normal file
@ -0,0 +1,63 @@
|
||||
;
|
||||
; test labels
|
||||
;
|
||||
|
||||
extern extern_label
|
||||
|
||||
public public_label
|
||||
public public_equ, public_gequ
|
||||
|
||||
private_label
|
||||
public_label
|
||||
|
||||
public_equ equ $1234
|
||||
public_gequ gequ $1234
|
||||
|
||||
private_equ equ $1234
|
||||
private_gequ gequ $1234
|
||||
|
||||
globals on
|
||||
|
||||
page0
|
||||
nop
|
||||
page0_equ equ $1234
|
||||
page0_label
|
||||
ends
|
||||
|
||||
|
||||
code
|
||||
nop
|
||||
code_equ equ $1234
|
||||
code_label
|
||||
ends
|
||||
|
||||
data
|
||||
nop
|
||||
data_equ equ $1234
|
||||
data_label
|
||||
ends
|
||||
|
||||
udata
|
||||
nop
|
||||
udata_equ equ $1234
|
||||
udata_label
|
||||
ends
|
||||
|
||||
kdata
|
||||
nop
|
||||
kdata_equ equ $1234
|
||||
kdata_label
|
||||
ends
|
||||
|
||||
offset_s section offset $200
|
||||
nop
|
||||
offset_equ equ *
|
||||
offset_label
|
||||
ends
|
||||
|
||||
indir_s section indirect $200
|
||||
nop
|
||||
indir_equ equ *
|
||||
indir_label
|
||||
ends
|
||||
|
79
samples/labels.lst
Normal file
79
samples/labels.lst
Normal file
@ -0,0 +1,79 @@
|
||||
Wed Jan 4 2017 13:51 Page 1
|
||||
|
||||
|
||||
***************************************
|
||||
** WDC 65C816 Macro Assembler **
|
||||
** **
|
||||
** Version 3.49.1- Feb 6 2006 **
|
||||
***************************************
|
||||
|
||||
1 ;
|
||||
2 ; test labels
|
||||
3 ;
|
||||
4
|
||||
5 extern extern_label
|
||||
6
|
||||
7 public public_label
|
||||
8 public public_equ, public_gequ
|
||||
9
|
||||
10 private_label
|
||||
11 public_label
|
||||
12
|
||||
13 00001234 public_equ equ $1234
|
||||
14 00001234 public_gequ gequ $1234
|
||||
15
|
||||
16 00001234 private_equ equ $1234
|
||||
17 00001234 private_gequ gequ $1234
|
||||
18
|
||||
19 globals on
|
||||
20
|
||||
21 page0
|
||||
22 00:0000: EA nop
|
||||
23 00001234 page0_equ equ $1234
|
||||
24 page0_label
|
||||
25 00:0001: ends
|
||||
26
|
||||
27
|
||||
28 code
|
||||
29 00:0000: EA nop
|
||||
30 00001234 code_equ equ $1234
|
||||
31 code_label
|
||||
32 ends
|
||||
33
|
||||
34 data
|
||||
35 00:0000: EA nop
|
||||
36 00001234 data_equ equ $1234
|
||||
37 data_label
|
||||
38 ends
|
||||
39
|
||||
40 udata
|
||||
41 00:0000: EA nop
|
||||
42 00001234 udata_equ equ $1234
|
||||
43 udata_label
|
||||
44 ends
|
||||
45
|
||||
46 kdata
|
||||
47 00:0000: EA nop
|
||||
48 00001234 kdata_equ equ $1234
|
||||
49 kdata_label
|
||||
50 ends
|
||||
51
|
||||
52 offset_s section offset $200
|
||||
Wed Jan 4 2017 13:51 Page 2
|
||||
|
||||
|
||||
53 00:0200: EA nop
|
||||
54 00000201 offset_equ equ *
|
||||
55 offset_label
|
||||
56 00:0201: ends
|
||||
57
|
||||
58 indir_s section indirect $200
|
||||
59 00:0200: EA nop
|
||||
60 00000201 indir_equ equ *
|
||||
61 indir_label
|
||||
62 00:0201: ends
|
||||
63
|
||||
|
||||
|
||||
Lines assembled: 63
|
||||
Errors: 0
|
BIN
samples/labels.obj
Normal file
BIN
samples/labels.obj
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user