/6502Net

6502 Emulator in C#

Primary LanguageC#OtherNOASSERTION

6502.Net

BuildStatus

Master

Build status

Overview

This is an implementation of the 6502 CPU simulator written in C#.

Features

  • 6502 processor and memory
  • Interrupts
  • WPF Test Harness
    • Set break points
    • Step through program
    • View registers and memory

Version History

  • 1.1 Cycle Accurate, other improvements
  • 1.0 All of Klaus Dormann's Tests pass successfully.
  • 0.9.9 All OP Codes Implemented.

References

Test Programs

I used the Klaus Dormann 6502 Test Suite (GPL License) to validate the simulator.

http://2m5.de/6502_Emu/

Compiling Tests

  1. Grab the AS65 Compiler http://www.kingswood-consulting.co.uk/assemblers/

  2. Modify the 6502_functional_test.a65

    load_data_direct = 0
    
  3. Run the following command to generate the bin file and lst file

     as65 -l -m -w -h0  6502_functional_test.a65
    
  4. Load the test in the simlator.

    1. Set the Memory Offset to be 0x0400
    2. Set the PC to 0x0400.

The Program Listing starts at 400