Menu

#175 [z80] Inline assember string define problem

open
nobody
None
5
2022-10-22
2022-10-22
Aoineko
No

I have a macro that write a binary header into the program ROM.
The first 2 bytes of the data is 2 ASCII character I set with .ascii "GL".
Now I want to set this value from a define but I got an error if I do:

PROG_ID = "GL"
.ascii PROG_ID

(same with .define PROG_ID "GL")
I suppose this is a asxxxx limitation but I hope someone here can help.
Do you know if asxxxx 5.0 (planned to be include SDCC 4.3) may solve this problem?

Related

Wiki: z80

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.