How noel-varghese/gameboycolor_cpp works
This is an early-stage C++ Game Boy Color emulator. The implemented workflow parses command-line options, loads and reports a ROM, initializes CPU state, then fetches and dispatches a short sequence of opcodes. Cartridge reads currently expose ROM bytes directly, and instruction handlers are mostly empty. The README describes planned graphics, audio, input, save-state, and link features; these are not present in the sampled source. The graph marks planned areas as unimplemented, and limits implemented relationships to those visible in the excerpts.
Main entry points: CPU.cpp CPU execution · main.cpp Program entry · logger.cpp Logging · Cartridge.cpp ROM cartridge
Components 16
Application flow
- Program entry
main.cpp - Argument parsing
CMDLineParser/CmdLineParser.cpp
Emulation core
- ROM cartridge
Cartridge/Cartridge.cpp - CPU execution
CPU/CPU.cpp - Opcode table
CPU/CPU_REG.cpp - CPU register model
CPU/CPU.h
Runtime support
- Logging
Log/logger.cpp
Planned capabilities
- PPU rendering
- APU audio
- Joypad input
- Link cable
- Link transports
- Save features
- Shaders and display
- Cheats menu
Other components
- Emulator user
Connections 19
- Emulator user → Program entry: runs
- Program entry → Argument parsing: parses options
main.cpp - Program entry → ROM cartridge: loads ROM
main.cpp - Program entry → CPU execution: initializes and steps
main.cpp - Program entry → Logging: sets log level
main.cpp - CPU execution → ROM cartridge: reads opcode
CPU/CPU.cpp - CPU execution → Opcode table: dispatches via table
CPU/CPU.cpp - CPU execution → CPU register model: uses state
CPU/CPU.cpp - Argument parsing → Logging: logs errors
CMDLineParser/CmdLineParser.cpp - ROM cartridge → Logging: logs ROM status
Cartridge/Cartridge.cpp - CPU execution → Logging: logs execution
CPU/CPU.cpp - CPU execution → PPU rendering: planned subsystem
README.md - CPU execution → APU audio: planned subsystem
README.md - CPU execution → Joypad input: planned subsystem
README.md - CPU execution → Link cable: planned subsystem
README.md - Link cable → Link transports: planned backends
README.md - CPU execution → Save features: planned feature
README.md - CPU execution → Shaders and display: planned feature
README.md - CPU execution → Cheats menu: planned feature
README.md