Expand description
Rung 3: Klaus Dormann’s 65C02 extended opcodes test, relocated, natively.
dormann TEST.bin START SUCCESS [--limit N]TEST.bin is the 64 KB image scripts/reference_dormann.py builds as the
reference’s scripts/run_dormann.py builds it; START and SUCCESS are
its labels start and success_address (hex). The program is
self-checking: it traps (a jump or branch to itself) at the first wrong
result and reaches the success address when everything passed.
The memory is the 65C02’s flat 64 KB through the mapper as the reference’s
tests/dormann.py maps it: MPR0 and MPR1 are one bank, so the absolute
$00xx/$01xx the program uses and the zero page and stack at
$20xx/$21xx the core uses are the same bytes; the code is at $4000
and up.
Structs§
- Ram 🔒
Constants§
- BANK 🔒
Functions§
- main 🔒