etk
etk copied to clipboard
Nested/local labels
Example
I think we could support something like:
root:
push1 .nested
jump
.nested:
jumpdest
other:
.nested:
push1 root.nested
This example would define the following labels:
-
rootat0 -
root.nestedat3 -
otherat4 -
other.nestedat4
Necessary Considerations
- Probably should pay special attention how how this interacts with user defined macros (#18)
- Deeply nested labels
root.nested.super_nested - Parent references (maybe
..nestedorsuper.nestedor something else entirely)
Further Reading
https://www.tortall.net/projects/yasm/manual/html/nasm-local-label.html