1# mos6502-test-runner
2
3Test harness for testing `mos6502-emu` against [TomHarte's 6502 tests](https://github.com/TomHarte/ProcessorTests/tree/main/nes6502).
4
5This test harness skips all tests for illegal KIL opcodes but runs all others.
6
7`mos6502-emu` currently passes all official opcode tests but fails on some of the illegal opcodes:
8* $6B (ARR)
9  * Works correctly for NES 6502 but not stock 6502
10* $8B (XAA)
11* $93 (SHA)
12* $9B (TAS)
13* $9C (SHY)
14* $9E (SHX)
15* $9F (SHA)
16* $AB (LXA)
17
18To run tests using stock 6502 behavior (decimal flag works):
19```shell
20cargo run --release --bin mos6502-test-runner -- -d ../ProcessorTests/6502/v1
21```
22
23To run tests using NES 6502 behavior (decimal flag does nothing):
24```shell
25cargo run --release --bin mos6502-test-runner -- -d ../ProcessorTests/nes6502/v1 --nes
26```