Commit Graph

7 Commits

Author SHA1 Message Date
70ad4b74db README: add initial readme
Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-06 16:49:30 +08:00
aaf4c2f67d test: implement jump tests
This enables jump tests, which can test the label functionality.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-06 16:45:07 +08:00
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
78a2fd2deb disasm: move functions to their own module
This moves disassembler functions into their own module.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-06 16:42:58 +08:00
f3cfc9e94b disassembler: implement disassembler
The disassembler will be useful in tracking down build errors.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-06 14:03:39 +08:00
dccb088961 stable: put macro debug flags behind feature gate
This enables tests to work on stable. To enable macro debugging, build
with `--features macro-debug`.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-06 10:49:58 +08:00
bunnie
45b9dc1790 initial commit 2020-08-06 03:21:51 +08:00