Syntax for specifying exact bytecode offset #107
Labels
A-assembler
Area: assembler
C-enhance
Category: a request for an improvement
E-hard
Experience: difficult, probably not for the faint of heart
The output from
disease
is not immediately importable intoeas
, which is pretty annoying. I also have a weird function selector jump table implementation that requires precisely positioning instructions. I propose the following syntax to exactly specify an instruction's offset:Gaps between instructions are filled with zeros, and instructions must still be written in increasing order. Labels refer to the next written instruction, and not the fill bytes. A label after a gap refers to the location after the last fill byte. A label before a gap without a subsequent instruction is an error.
The example above would assemble to:
The text was updated successfully, but these errors were encountered: