How rrrh/vcfe_zh16 works
ROM Structure Layer
• Program ROM section
• Graphics/Asset ROM section
• Sound ROM section
Core Components
• Main Core Engine (core.c)
• Memory Management (memory.c)
• SNES Hardware Interface (snes_funcs.c)
• Sound Core (snd/snd_core.s)
Scene Management
• State Machine (include/state_machine.h)
• Scene Components:
• Start Screen
• Exhibit View
• Timeline View
• Scroller Component (vcfe_scroller)
Resource Management
• Graphics Assets:
• Exhibits (multiple computer systems)
• Fonts
• Sprites
• Background elements
• Sound Assets
• Data Tables (sin tables, etc.)
Use a Layered Architecture Approach
• [Hardware Layer (SNES)]
• ↑↓
• [Hardware Interface Layer (SNES Functions/Registers)]
• ↑↓
• [Core System Layer (Memory/State Management)]
• ↑↓
• [Scene Management Layer]
• ↑↓
• [Resource Management Layer]
Component Relationships
• Use double lines for hardware interfaces
Technical Details
• ROM size and organization
• Memory map regions
• Hardware register interfaces
• Asset compression/decompression flows
• The separation between hardware-specific code and game logic
• Resource loading and management paths
• Scene transition flow
• Hardware-specific optimizations and constraints
• SNES-specific terminology
• Memory region markers
• Asset format indicators (.clr, .pic, .map files)
• Hardware register references
Keep the abstraction level appropriate for SNES development while maintaining enough detail to show the unique aspects of retro-gaming system architecture.