How 2555jaa/gameboy-emulator works
This repository is a single-file Windows Game Boy (DMG) emulator. Its intended workflow is to start the program with an optional ROM path, load the ROM, initialize hardware, and load saved state; emulation then uses CPU, memory, graphics, and timer logic to produce a display. The source excerpt confirms startup calls and several internal interactions, but omits the main loop, input handling, rendering presentation, and save-state implementation, so those connections are not asserted.
Main entry points: gb.c Program startup
Components 11
Startup and ROM
- Program startup
gb.c - ROM loader
gb.c - Hardware initialization
gb.c - Save-state handling
gb.c
Emulation core
- CPU execution
gb.c - Memory bus and mapper
gb.c - PPU rendering
gb.c - Timer
gb.c
Windows interface
Other components
- Player
- Game ROM
Connections 10
- Player → Program startup: launches
gb.c - Program startup → ROM loader: loads ROM
gb.c - Game ROM → ROM loader: reads bytes
gb.c - Program startup → Hardware initialization: initializes
gb.c - Program startup → Save-state handling: loads state
gb.c - CPU execution → Memory bus and mapper: reads and writes
gb.c - Memory bus and mapper → PPU rendering: provides video memory
gb.c - Timer → Memory bus and mapper: updates registers
gb.c - PPU rendering → Windows display and input: presents frames
gb.c - Player → Windows display and input: provides input