A 6502 CPU/MPU emulator in a small Java library. Ported from sid.c in siddump.
Mpu6502
is the main class. You can call "tick" on it to make it execute the next instruction. This is fetched from theBus
, withOnlyMemoryBus
as a simple implementation. Pretty much everything is public and free to mess with. It was thoroughly tested with this 6502 test suite.Mpu6502Specifications
contains a reusable collection of technical data.Assembler
is a quick and dirty little assembler that doesn't do much yet. Check outAssemblerTest
to see how it's used.Disassembler
is not much yet.Monitor
is also not much yet. It wraps anMpu6502
so you can play around with it.