All functional tests of the 6502 by Klaus Dormann are successful.
I ran the unit test with these parameters:
Code:
{
"CompileFromSource": false,
"MemDumpInput": "6502_functional_test.bin",
"AsmSource": "Test.asm",
"RamStart": "0",
"RamSize": "0x8000",
"RomStart": "0xc000",
"RomSize": "0x4000",
"RunUntilBrk": false,
"RunCycleAmount": true,
"CycleMax": 120000000,
"RunUntilPC": true,
"PC": "0x3469",
"TraceMemOps": false,
"TraceCLK": true,
"DumpMem": true,
"JsonResult": "res.json",
"MemDumpOutput": "mem_out.bin"
}
The original image was slightly patched (RESET = 0x0400).
The state of the registers and the CLK on the output:
Code:
{"A":"0xF0","X":"0x0E","Y":"0xFF","S":"0xFF","PC":"0x3469","C":1,"Z":0,"I":0,"D":0,"V":1,"N":1,"CLK":96241361}