MCPcopy Create free account
hub / github.com/djhworld/simple-computer / ConnectPeripheral

Method ConnectPeripheral

cpu/cpu.go:516–519  ·  view source on GitHub ↗
(p io.Peripheral)

Source from the content-addressed store, hash-verified

514}
515
516func (c *CPU) ConnectPeripheral(p io.Peripheral) {
517 p.Connect(c.ioBus, c.mainBus)
518 c.peripherals = append(c.peripherals, p)
519}
520
521// Jump IAR
522func (c *CPU) SetIAR(address uint16) {

Callers 3

testIOInputInstructionFunction · 0.80
testIOOutputInstructionFunction · 0.80
NewComputerFunction · 0.80

Calls 1

ConnectMethod · 0.65

Tested by 2

testIOInputInstructionFunction · 0.64
testIOOutputInstructionFunction · 0.64