How hyde12/gameboy-emulator works
This is a small, unfinished Game Boy emulator. Its runtime workflow is: the application loads a ROM, repeatedly advances the emulated CPU, and updates a minifb window. The emulation core combines instruction execution, register state, and memory-bus access; ROMData stores the loaded cartridge bytes and external RAM. The displayed framebuffer is cleared rather than populated with emulated graphics. There is no README, and the ROM-header reader is commented out, so neither is represented as active functionality.
Main entry points: main.rs Game Window · gameboy.rs CPU Execution · rom.rs ROM State · registers.rs Registers
Components 8
Application
- Game Window
src/main.rs
Emulation Core
- Emulator Runtime
src/emu/gameboy.rs - CPU Execution
src/emu/gameboy.rs - Memory Bus
src/emu/gameboy.rs - Registers
src/emu/registers.rs - Byte Helper
src/emu/helpers.rs
Cartridge State
- ROM State
src/emu/rom.rs
Other components
- User
Connections 9
- User → Game Window: opens and controls
src/main.rs - Game Window → Emulator Runtime: creates and ticks
src/main.rs - Game Window → ROM State: loads ROM into
src/main.rs - Game Window → Game Window: updates display
src/main.rs - Emulator Runtime → CPU Execution: runs tick
src/emu/gameboy.rs - CPU Execution → Memory Bus: fetches and accesses
src/emu/gameboy.rs - CPU Execution → Registers: reads and updates
src/emu/gameboy.rs - CPU Execution → Byte Helper: combines bytes
src/emu/gameboy.rs - Memory Bus → ROM State: reads ROM and RAM
src/emu/gameboy.rs