Sean Cross 727d101adf asm: fix relocations and dangling bytes
The 6502 assembler took a different approach to relocations, wherein
jump values were stored in the subsequent byte. In this device, jump
values are stored in the current word.

Additionally, jumps only have a 1-word offset, not 2-bytes.

This necessitates several changes, which are presented here. This
includes not eating the subsequent byte, and only subtracting 1 from the
current PC rather than 2.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-06 16:43:23 +08:00
2020-08-06 03:21:51 +08:00
Description
Mirror of Betrusted repo
30 KiB
Languages
Rust 100%