class

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.

Source
read_io(port : UInt8) : UInt8

Default open-bus I/O behavior keeps FlatMemory suitable for CPU specs.

Source
read_u16(address : UInt32) : UInt16
Source
read_u8(address : UInt32) : UInt8
Source
write_io(port : UInt8, value : UInt8) : Nil
Source
write_u16(address : UInt32, value : UInt16) : Nil
Source
write_u8(address : UInt32, value : UInt8) : Nil
Source