How amaiorano/vectrexy works
Vectrexy is a C++ Vectrex emulator. The main workflow starts the selected engine, registers an emulator client, initializes the emulator and debugger, loads a ROM (or uses built-in Mine Storm), then advances frames and returns rendering and audio data to the engine. SDL supplies the interactive display and controls; a null engine is also available. The README additionally documents configurable input, overlays, and a Debug Adapter Protocol debugger. Some subsystem links are omitted because the relevant implementation excerpts were not provided.
Main entry points: main.cpp Emulator client · SDLEngine.cpp SDL engine · Emulator.cpp Emulator coordinator · Cpu.cpp CPU execution
Components 21
Application coordination
- Application entry
libs/vectrexy/src/main.cpp - Emulator client
libs/vectrexy/src/main.cpp - Overlay matching
libs/engine/src/Overlays.cpp - Options and paths
libs/engine/src/Options.cpp - Core utilities
libs/core/include/core
Vectrex emulation
- Emulator coordinator
libs/emulator/src/Emulator.cpp - CPU execution
libs/emulator/src/Cpu.cpp - Memory bus
libs/emulator/include/emulator/MemoryBus.h - Console devices
libs/emulator/src/Via.cpp - Vector screen
libs/emulator/src/Screen.cpp - PSG audio
libs/emulator/src/Psg.cpp - ROM and BIOS
libs/emulator/src/Cartridge.cpp
Engine and I/O
- SDL engine
libs/sdl_engine/src/SDLEngine.cpp - Input mapping
libs/sdl_engine/src/InputManager.cpp - OpenGL rendering
libs/sdl_engine/src/GLRender.cpp - SDL audio
libs/sdl_engine/src/SDLAudioDriver.cpp - Null engine
libs/null_engine/src/NullEngine.cpp
Debugging
- Interactive debugger
libs/debugger/src/Debugger.cpp - DAP debugger
libs/debugger/src/DapDebugger.cpp - Symbols and RST
libs/debugger/src/RstParser.cpp
Other components
- Player
Connections 19
- Player → Application entry: starts
README.md - Application entry → SDL engine: registers and runs
libs/vectrexy/src/main.cpp - Application entry → Null engine: selects alternative
- SDL engine → Emulator client: runs callbacks
libs/sdl_engine/src/SDLEngine.cpp - Emulator client → Emulator coordinator: initializes and updates
libs/vectrexy/src/main.cpp - Emulator client → ROM and BIOS: loads ROM or BIOS
libs/vectrexy/src/main.cpp - Emulator client → Overlay matching: loads and matches
libs/vectrexy/src/main.cpp - Emulator client → Interactive debugger: updates when enabled
libs/vectrexy/src/main.cpp - Emulator client → DAP debugger: updates when enabled
libs/vectrexy/src/main.cpp - Emulator coordinator → CPU execution: coordinates execution
- CPU execution → Memory bus: accesses memory
libs/emulator/src/Cpu.cpp - Emulator coordinator → Console devices: uses peripherals
- Console devices → Vector screen: provides display
- Emulator coordinator → PSG audio: produces audio
- SDL engine → Input mapping: polls controls
- SDL engine → OpenGL rendering: renders frames
- SDL engine → SDL audio: plays samples
- Interactive debugger → Emulator coordinator: inspects execution
- DAP debugger → Symbols and RST: uses debug metadata