4 ms·
Plug plug: I've written an assembler[0] for the 6502 (with full LSP and debugging support). It also supports the concept of unit tests whereby your program gets
by royjacobs 3y ago
Plug plug: I've written an assembler[0] for the 6502 (with full LSP and debugging support). It also supports the concept of unit tests whereby your program gets assembled and every test individually gets assembled and run, whereby you can add certain asserts to check for CPU register states and things like that.
[0] See https://mos.datatra.sh/guide/unit-testing.html https://mos.datatra.sh/guide/unit-testing.html
- masfuerte 3y agoAdding asserts directly to the assembly code is a really nice idea. I might steal it! P.S. Lines 9 and 10 in your example test use "==" and "=".