z80asm equ
z80asm equ
Hello,
z80asm doesnt support following syntax:
label: equ value
I have to remove colon in this case. Would it be possible to enable also this form?
Thank you
--berk
z80asm doesnt support following syntax:
label: equ value
I have to remove colon in this case. Would it be possible to enable also this form?
Thank you
--berk
I opened an issue on github:
https://github.com/z88dk/z88dk/issues/1018
https://github.com/z88dk/z88dk/issues/1018
Re: z80asm equ
Hi, just found this thread and my question seems related to it.
I have the following PASMO syntax:
That defines the my_label constant to be the current assembling position at the beginning of the line plus 4 bytes.
Does z88dk-z80asm have a similar syntax? How can I acces the current assembly address from inside the asm file with z88dk-z80asm?
Thanks, and sorry if the question is trivial :-)
J.
I have the following PASMO syntax:
Code: Select all
...
my_label: equ $+4
...
Does z88dk-z80asm have a similar syntax? How can I acces the current assembly address from inside the asm file with z88dk-z80asm?
Thanks, and sorry if the question is trivial :-)
J.
Re: z80asm equ
Mmm maybe ASMPC is what I'm looking for...?
-
- Member
- Posts: 80
- Joined: Sat Feb 06, 2021 2:32 pm
Re: z80asm equ
Pehaps the defc z80asm directive is useful? https://github.com/z88dk/z88dk/wiki/Too ... xpression-
Re: z80asm equ
Hi pjshumphreys,
yes, that directive is what I used. So finally I replace the following PASMO statement:
with the following Z80ASM one:
yes, that directive is what I used. So finally I replace the following PASMO statement:
Code: Select all
...
my_label: equ $+4
Code: Select all
...
defc my_label = ASMPC+4
Re: z80asm equ
It looks like Paulo added support for equ and $ a while back:
Code: Select all
cdom@ermintrude z88dk % cat equ.asm
GLOBAL abc
GLOBAL def
org 32000
abc equ $+4
def: equ $+10
dom@ermintrude z88dk % z88dk-z80asm -b -m equ
dom@ermintrude z88dk % cat equ.map
abc = $7D04 ; addr, public, , equ, , equ.asm:8
def = $7D0A ; addr, public, , equ, , equ.asm:9
__head = $7D00 ; const, public, def, , ,
__tail = $7D00 ; const, public, def, , ,
__size = $0000 ; const, public, def, , ,
Re: z80asm equ
Arrggh!!! So I could just have compiled It!! :-D
Anyway, experience acquired...
Thanks Dom
Anyway, experience acquired...
Thanks Dom