I want to do hello world in CP/M (Yes, this isn't strictly z80, but the 8080 is close enough). My code is:
Code:
But my Hello.prn output is:
Code:
Which means that the label isn't being assembled. Anyone know why it isn't working?
Moved by Merth to General Programming. The only thing "close enough" to z80 to be in the z80 forum is z80.
Code:
WRITESTR: EQU 9h
BDOS: EQU 5h
ORG 100h
MVI C, WRITESTR
LXI D, HELLO
CALL BDOS
HELLO: DB "Hello World!$"
But my Hello.prn output is:
Code:
0009 = WRITESTR: EQU 9h
0005 = BDOS: EQU 5h
0100 ORG 100h
0100 0E09 MVI C, WRITESTR
0102 110801 LXI D, HELLO
0105 CD0500 CALL BDOS
Which means that the label isn't being assembled. Anyone know why it isn't working?
Moved by Merth to General Programming. The only thing "close enough" to z80 to be in the z80 forum is z80.