How nokturnusmf/gameboy works
Main Components
a) Core Hardware Components:
• CPU (cpu.h)
• Memory Management Unit (memmap.h/cpp)
• Controller (display.h/cpp)
• Timer System (timer.h/cpp)
• Input Controller (input.h/cpp)
• Interrupt Controller (interrupts.h/cpp)
• Memory Bank Controller (bank.h/bank.impl)
b) External Interfaces:
• ROM Loading System (rom.h/cpp)
• GLFW Display Output (gb-glfw.cpp)
• Keyboard Input System
Component Relationships
a) Central Components:
• Interrupt Controller connected to both CPU and other components that can trigger interrupts
b) Data Flow:
• ROM data flow into Memory Management Unit
• Memory access path from Memory Management Unit to Display Controller
• Input Controller connection to Interrupt Controller
• Timer connection to Interrupt Controller
Specific Implementation Details
• Core Components (Rectangle): CPU, MMU, Display
• Support Systems (Rounded Rectangle): Timer, Input, Interrupts
• External Interfaces (Hexagon): ROM Loader, GLFW Display
[GLFW Display Output] ←→ [Display Controller] ←→ [Memory Management Unit] ←→ [ROM Loader]
• ↑↓
[Keyboard Input] →→ [Input Controller] →→→→→→→→ [CPU] ←→ [Bank Controller]
• ↓ ↑
• [Interrupt Controller] ←←←← [Timer System]
Implementation Notes
• The cycle-accurate nature of the emulation
• Memory mapping and bank switching capabilities
• Interrupt handling paths
• Refresh and timing mechanisms
• Input handling and processing flow