Code: Select all
ORG $1234
.start
RET
DW start
IF start == 0
DB "Hello"
ENDIF
Code: Select all
Z88DK-Z80ASM -mz80 -b -s -l -m -g test.asm
Code: Select all
c9 34 12 48 65 6c 6c 6f
Shouldn't "start" be $1234? I would have expected the IF to evaluate to false, and no "Hello" to be output.
The map file shows start=$1234 as expected.
The listing file shows the addresses starting at zero, and the "DW start" as listed as two zero bytes.
The symbols file shows start=$0000.
Any ideas?