$ cd ~/projects Simple CPU Emulator ──────────────────────────────────────────────────── A simple CPU emulator written in Rust. tags: Rust ──────────────────────────────────────────────────── ## Experiment with a small instruction set This learning project emulates an invented CPU architecture, with some inspiration from the 6502. Its examples demonstrate arithmetic, stack operations, conditional jumps, and halting. The instruction set is documented in the processor source. Simple CPU Emulator on GitHub https://github.com/michidk/simple-cpu-emulator ──────────────────────────────────────────────────── ## Load assembly or write instructions in Rust Programs can be parsed from `.asm` files or written in Rust with the `write_instructions!` macro. Create memory and a processor at an entry point, then execute until the halt instruction. The repository includes both approaches and runnable examples using `cargo run --example `. CPU emulator examples https://github.com/michidk/simple-cpu-emulator/tree/main/examples Instruction reference https://github.com/michidk/simple-cpu-emulator/blob/main/src/processor.rs ──────────────────────────────────────────────────── $ ls ~/pages > about curl -L lohr.dev > projects curl -L lohr.dev/projects > blog curl -L lohr.dev/blog > stats curl -L lohr.dev/stats > contact curl -L lohr.dev/contact ──────────────────────────────────────────────────── https://lohr.dev