#emulator #mos #allocator #std #6502

simple6502

A dead-simple MOS 6502 emulator, no std or allocator needed, no dependencies

2 stable releases

2.0.0 Nov 1, 2023
1.1.0 Nov 1, 2023
1.0.0 Nov 1, 2023

#224 in Emulators

22 downloads per month

MIT license

37KB
886 lines

Simple6502

A simple MOS 6502 emulator, written in Rust.

No std needed, no allocator needed, just the core library.


let mut emu = Emulator::default()
  .with_ram(*include_bytes!("example.bin"))
  .at(0x400);

print!("\x1B[2J");

while !emu.status.r#break() {
    emu.step();
    print!("\x1B[1;1H{emu:?}");
}

println!("\nInterrupted");

Dependencies

~160KB