Swanium::Core::MemoryBus
Inherits Reference < Object
Platform-neutral, 20-bit V30 memory interface. The hardware map will replace FlatMemory without changing CPU code.
Instance methods
consume_wait_cycles
Some hardware I/O operations synchronously stall the V30. A bus accumulates those costs while handling an instruction, and the CPU consumes them before reporting that instruction's total cycle count.
read_io(port : UInt8) : UInt8
Default open-bus I/O behavior keeps FlatMemory suitable for CPU specs.
read_u16(address : UInt32) : UInt16
Sourceread_u8(address : UInt32) : UInt8
Sourcewrite_io(port : UInt8, value : UInt8) : Nil
Sourcewrite_u16(address : UInt32, value : UInt16) : Nil
Sourcewrite_u8(address : UInt32, value : UInt8) : Nil
Source