I have a couple simple routines.
HELLO.MAC
And PRINT.MAC
The editor butchers this a bit.
I assemble and link them using M80:
I don't understand why it can't find PRINT.
Also, how does it know to start at 100 with no ORG statement?
HELLO.MAC
Code:
.z80
extrn print
start: ld hl, msg
call print
ld c, 0
call 5
halt
msg: db 'Hello',0
end start
And PRINT.MAC
Code:
.z80
public print
print: ld a, (hl)
cp 0
ret z
inc hl
push hl
ld e, a
ld c, 2
call 5
pop hl
jr print
end
The editor butchers this a bit.
I assemble and link them using M80:
Code:
m80 =hello/l
m80 =print/l
l80 hello/n,print/n,hello/e
Link-80 3.44 09-Dec-81 Copyright (c) 1981 Microsoft
Data 0103 0215 < 274>
-PRINT 0207
1 Undefined Global(s)
48927 Bytes Free
[0203 0215 2]
I don't understand why it can't find PRINT.
Also, how does it know to start at 100 with no ORG statement?