Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
516
func
(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
522
func
(c *CPU) SetIAR(address uint16) {
Callers
3
testIOInputInstruction
Function · 0.80
testIOOutputInstruction
Function · 0.80
NewComputer
Function · 0.80
Calls
1
Connect
Method · 0.65
Tested by
2
testIOInputInstruction
Function · 0.64
testIOOutputInstruction
Function · 0.64