two-module hello

This commit is contained in:
Kelvin Sherlock 2017-01-08 12:44:17 -05:00
parent f1e7e0f0e3
commit 2d69c18bd1
4 changed files with 78 additions and 1 deletions

View File

@ -1,7 +1,7 @@
AS = wdc816as
ASFLAGS = -L
all: instructions.obj hello1.obj hello2.obj labels.obj
all: instructions.obj hello1.obj hello2.obj hello3.obj labels.obj
%.obj : %.asm
$(AS) $(ASFLAGS) $< -o $@

28
samples/hello3.asm Normal file
View File

@ -0,0 +1,28 @@
;
; 2-segment, 2 module code.
;
include 'hello.macros'
macdelim {
module code
CODE
extern text
pea #^text
pea #text
_WriteLine
rtl
ends
endmod
module data
KDATA
public text
text
pstr {'hello, world'}
ends
endmod

49
samples/hello3.lst Normal file
View File

@ -0,0 +1,49 @@
Sun Jan 8 2017 12:42 Page 1
***************************************
** WDC 65C816 Macro Assembler **
** **
** Version 3.49.1- Feb 6 2006 **
***************************************
1
2 ;
3 ; 2-segment, 2 module code.
4 ;
5 include 'hello.macros'
6
7 macdelim {
8
9 module code
10 CODE
11 extern text
12 00:0000: F4 xx xx pea #^text
13 00:0003: F4 xx xx pea #text
14 _WriteLine
+ 14 00:0006: A2 0C 1A ldx #$1a0c
+ 14 00:0009: 22 00 00 E1 jsl $e10000
15
16 00:000D: 6B rtl
17 ends
18 endmod
19
20 module data
21 KDATA
22 public text
23 text
24 pstr {'hello, world'}
+ 24 00:0000: 0C db end0001-start0001
+ 24 start0001
+ 24 00:0001: 68 65 6C 6C db 'hello, world'
00:0005: 6F 2C 20 77
00:0009: 6F 72 6C 64
+ 24 end0001
25 00:000D: ends
26 endmod
27
28
Lines assembled: 58
Errors: 0

BIN
samples/hello3.obj Normal file

Binary file not shown.