Closed s5bug closed 4 years ago
If you want to assemble ez80 code you have to pass the -E = Assemble eZ80 code
flag.
I am passing -E
:
Here's cehead.asm
:
.ASSUME ADL=1
di
rsmix
jp.lil $000e4f
di
rsmix
jp.lil $0015f5
di
rsmix
jp.lil $020110
di
rsmix
jp.lil $020114
di
rsmix
jp.lil $020118
di
rsmix
jp.lil $02011c
di
rsmix
jp.lil $020120
ex af, af'
exx
push ix
push iy
Spasm requires every line containing an instruction to start with whitespace, for which one tab is usually used. For a modern, more powerful, ez80 assembler with fewer bugs, more features, and that doesn't have this restriction, there's also fasmg as an alternative.
Sounds good, I think I'll use fasm then.
If you have more general fasmg and/or ez80 questions I would suggest asking on the EFNet IRC #ez80-dev channel.
The 3rd instruction after disassembling my CE rom with zdis is
jp.lil $000e4f
which spasm doesn't recognize. What's the replacement? Doing.ASSUME ADL=1
and then justjp
throws the same error.