Swanium::Core::WonderSwanInterruptController
Inherits Reference < Object
Owns the WonderSwan interrupt registers, keypad matrix, and display timers. The bus remains the address-map owner while this device models the state transitions behind the CPU-visible interrupt ports.
Constructors
new(ports : Bytes, model : WonderSwanModel)
SourceInstance methods
keys
Sourcepending_vector?
Sourceread_io?(port : UInt8) : UInt8 | Nil
Sourcerequest(source : WonderSwanInterrupt) : Nil
Sourcerestore_keys(keys : UInt16) : Nil
Sourceset_current_scanline(line : UInt8) : Nil
Sourceset_keys(keys : UInt16) : Nil
The platform layer supplies a complete input snapshot. Only a newly pressed key raises the edge-triggered KeyPress source.
write_io?(port : UInt8, value : UInt8) : Bool
Returns true when the port is owned by this device, including read-only registers whose writes must be ignored.