Swanium::Core::WonderSwanDmaController
Inherits Reference < Object
Owns the Color/Crystal DMA register behavior and transfer state. The controller accesses memory only through MemoryBus, leaving the platform bus responsible for mapping and interrupt delivery.
Constructors
new(ports : Bytes, model : WonderSwanModel)
SourceInstance methods
consume_wait_cycles
Sourceload_state(io : IO) : Nil
Sourcereset
Sourcesave_state(io : IO) : Nil
Sourcetick_sound(cycles : UInt32, apu : Apu, work_ram : Bytes, color_rendering_enabled : Bool, memory : MemoryBus) : Nil
Sourcewrite_io(port : UInt8, value : UInt8, memory : MemoryBus) : Bool
Returns true when a GDMA burst completed and the caller must raise the DMA-complete interrupt.