Mirror of Betrusted repo
Go to file
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
src asm: fix relocations and dangling bytes 2020-08-06 16:43:23 +08:00
Cargo.lock initial commit 2020-08-06 03:21:51 +08:00
Cargo.toml disassembler: implement disassembler 2020-08-06 14:03:39 +08:00