class

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)
Source

Instance methods

consume_wait_cycles
Source
load_state(io : IO) : Nil
Source
reset
Source
save_state(io : IO) : Nil
Source
tick_sound(cycles : UInt32, apu : Apu, work_ram : Bytes, color_rendering_enabled : Bool, memory : MemoryBus) : Nil
Source
write_io(port : UInt8, value : UInt8, memory : MemoryBus) : Bool

Returns true when a GDMA burst completed and the caller must raise the DMA-complete interrupt.

Source