Generic function to implement memory mappings
Initialize internal CPU registers for testing purposes
Testing framework
Map RAM to $0000..$EFFF and program to $F000..$FFFF.
Also, make sure no address in program ROM is passed as an operand
Reverse order of bits in status register
Unified memory, prepopulated with opcode under test at PC
Add labels to tests
Complete jmp, lda, ldx, ldy, nop, sta tests
Run simulation until next Fetch1 state
Nicer output in Show instance of InitialState
Clean up unused argument
Oops
Update Z and N flags on LDY
First bug found by testsuite!
Show byte/word at address argument
Don't (ab)use addrIndirect for indirect jumps, as that results in oplen of 2
Vectors don't cross over banks
Add data-default to .cabal dependencies
use memoryMapping for routing between RAM and ROM reads
initialize status flags from CPUInit
Functor instance for TestM