You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We do want to support labels at some point and we have talked about how we'd want to implement it, but currently nobody is dedicated to work on this project. We're more than happy to help and merge any PR, if you happen to be able to spare some time on this.
The high level idea was to create a map of "label"-"address" while the first pass of assembling.
Add a node to that map, whenever a label is parsed.
if an instruction with label is parsed, check this map and calculate the relative offset, if the label is already in the map, if not, assemble with 0x0 as the offset and create an entry in a back patch list.
at the end, traverse the back patch list, and and back patch all the necessary instructions.
Does this project have plans to support labels and rel address like nasm?
The text was updated successfully, but these errors were encountered: