mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 18:18:05 +11:00
295b4b6e0a
Will be useful for assembling binaries for the TRS-80 which can't start at addr 0.
11 lines
370 B
Plaintext
11 lines
370 B
Plaintext
Variable actions are expected to be called with labels in
|
|
front of them. Example, "L2 FSET"
|
|
|
|
About that "1 -": z80 relative jumps record "e-2", that is,
|
|
the offset that *counts the 2 bytes of the jump itself*.
|
|
Because we set the label *after* the jump OP1 itself, that's 1
|
|
byte that is taken care of. We still need to adjust by another
|
|
byte before writing the offset.
|
|
|
|
|