Files
Stephen Crane 00022e8a0c Porting cpm80 to linux (#161)
* moving tests
* disk geometries based on size
2026-07-16 17:13:11 +01:00
..
2026-07-16 17:13:11 +01:00
2026-07-16 17:13:11 +01:00
2026-07-16 17:13:11 +01:00

6502 Tests

This directory contains the latest version of Klaus Dormann's 6502 Functional Tests.

$ make 
g++ -g -I.. -DDEBUGGING=0x01  -c -o test.o test.cc
g++ -g -I.. -DDEBUGGING=0x01 -o r6502.o -c ../r6502.cpp
g++ -g -I.. -DDEBUGGING=0x01 -o memory.o -c ../memory.cpp
g++ -o test test.o r6502.o memory.o machine.o 
$ time ./test 6502_functional_test.bin | tail -2
aa xx yy sp nv_bdizc _pc_ op clk
f0 0e ff ff 11110001 3469 4c 96241363

real	0m25.596s
user	0m25.857s
sys	0m1.023s

The PC at $3469 indicates success. Otherwise consult the listing file for the test failure.

Note that the "correct number" of clocks for this test seems to be 96241361.