Closed nurpax closed 5 years ago
something like this should also work:
my_lut: {
!byte 0,1,2,3,4,5,6,7
end:
}
macro foo(lut) {
lda #lut.end - lut
}
something like this should also work:
my_lut: { !byte 0,1,2,3,4,5,6,7 end: } macro foo(lut) { lda #lut.end - lut }
This won't be supported for now. Would need some sort of string substitution style macro expansion.
Pretty much all done.
would support https://github.com/nurpax/c64jasm/issues/20 too.
some problems in current scoping:
the dot operator resolution in the assembler is sort of complicated since it can be either an object reference or a sort of undefined scope resolve.
perhaps nested access should instead be done by :: like in C++. e.g.,
to make it explicit and simplify symbol resolution.
macro expanded labels should also be accessible. KA does it like this, this seems good:
KA also supports for-loop labels and if-labels:
similarly, for-loop labels can be accessed similarly (in c64jasm syntax):