jevsnes.git / third-party / rust / jgenesis / cpu / z80-test-runner

z80-test-runner

Test harness for testing z80-emu against the ZEXDOC and ZEXALL test suites for the Z80 CPU, which were originally assembled for CP/M-compatible computers.

Example usage:

cargo run --release --bin z80-test-runner -- /path/to/zexdoc.com

Output is printed to stdout:

Z80doc instruction exerciser
<adc,sbc> hl,<bc,de,hl,sp>....  OK
add hl,<bc,de,hl,sp>..........  OK
add ix,<bc,de,ix,sp>..........  OK
add iy,<bc,de,iy,sp>..........  OK
aluop a,nn....................  OK
aluop a,<b,c,d,e,h,l,(hl),a>..  OK
aluop a,<ixh,ixl,iyh,iyl>.....  OK
aluop a,(<ix,iy>+1)...........  OK

...

<set,res> n,(<ix,iy>+1).......  OK
ld (<ix,iy>+1),<b,c,d,e>......  OK
ld (<ix,iy>+1),<h,l>..........  OK
ld (<ix,iy>+1),a..............  OK
ld (<bc,de>),a................  OK
Tests complete