Rusty6502
A 6502 emulator written in Rust.
Created for understanding the 6502 architecture and assembly. You can see the progress here, when all the instructions are implemented more examples will show up. My goal is implement all the instructions and create a hybrid platform that can work with too many different platforms. 6502 assembly is easy and fun to learn, planed hybrid platform can help other developers to learn how cpu works.
Virtual console
This repo has a virtual console that can be used to test the emulator. You can find it here.
Example
//Create memory space
let mut mem = MEM new;
//Create CPU
let mut cpu = CPU new;
//Reset the CPU, with start point at 0x600
cpu.reset;
/*
LDA #$01; Load accumulator with 01
*/
mem = 0xA9;
mem = 0x01;
let = cpu.execute_continuous;
//Print A, X, and Y registers
println!;
//Print status flags
println!;
//Print program counter and stack pointer
println!;
//Print processor status
println!;
//Dump the memory for inspection, hex viewer is helpfull
create.unwrap.write_all.unwrap;