class

Crybus::Bus

Inherits Reference < Object

The Bus

A connector handler.
Controls connectors being connected, disconnected, written to, and read from.

Instance methods

connect(connector : Connector)

Connects a connector to the bus

Source
disconnect(connector : Connector)

Disconnects a connector from the bus

Source
read(address : UInt32) : UInt8

Reads from an address.
If a connector is at that address, returns the output of that connectors segment,
otherwise return a garbage value.

Source
write(address : UInt32, data : UInt8)

Writes to an address.
If a connector is at that address, call the input for that connectors segment.

Source