profile
viewpoint

Ask questionsMacro \@ parsing has changed between 9.7b and 9.11, potentially broken

Consider the following demonstration macro;

.MACRO exampleMacro
    bra partialLabel_\@+1
    nop
    partialLabel_\@:
    nop
.ENDM

In 9.7b, this builds as expected with the label being correctly resolved.

Starting in 9.11 you recieve the following error;

FIX_REFERENCES: Reference to an unknown label "partialLabel_1"

If you insert a space between the @ and the + operator, it assembles correctly. This leads me to believe there is a parsing error with the @ arg when evaluating macros.

vhelin/wla-dx

Answer questions vhelin

FYI, the commit description sucks, {LABEL_\@+1} doesn't work. What works is LABEL_{\@+1}...

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List