mirror of
https://github.com/ksherlock/wdc-utils.git
synced 2024-12-12 04:29:05 +00:00
30 lines
275 B
NASM
30 lines
275 B
NASM
|
|
;
|
|
; 2-segment, 2 module code.
|
|
; with intersegment linkage.
|
|
|
|
include 'hello.macros'
|
|
|
|
macdelim {
|
|
|
|
module code
|
|
CODE
|
|
extern text
|
|
pea #^text
|
|
pea #text
|
|
_WriteLine
|
|
|
|
rtl
|
|
ends
|
|
endmod
|
|
|
|
module data
|
|
XDATA SECTION
|
|
public text
|
|
text
|
|
pstr {'hello, world'}
|
|
ends
|
|
endmod
|
|
|
|
|