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
This is a pretty standard assembler feature. Sometimes you just need to put some raw bytes into the bytecode. This should be implemented as a new directive, for example:
#bytecode "file.bin"
Including binary files should obviously work, but sometimes it can also be interesting to include the output of expressions. I think the syntax for this could use the same directive but with braces instead of the filename. The size of each expression would also need to be declared:
#bytecode {
1: 0x01
4: macro & mask
2: @label
}
Allowing labels in there is interesting for jumptable constructions.
The text was updated successfully, but these errors were encountered:
fjl
changed the title
Including arbitrary data in code
Including arbitrary data in bytecode
Sep 14, 2023
This is a pretty standard assembler feature. Sometimes you just need to put some raw bytes into the bytecode. This should be implemented as a new directive, for example:
Including binary files should obviously work, but sometimes it can also be interesting to include the output of expressions. I think the syntax for this could use the same directive but with braces instead of the filename. The size of each expression would also need to be declared:
Allowing labels in there is interesting for jumptable constructions.
The text was updated successfully, but these errors were encountered: