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

Method Connect

cpu/cpu_test.go:1032–1037  ·  view source on GitHub ↗
(ioBus *components.IOBus, mainBus *components.Bus)

Source from the content-addressed store, hash-verified

1030}
1031
1032func (p *DumbPeripheral) Connect(ioBus *components.IOBus, mainBus *components.Bus) {
1033 p.ioBus = ioBus
1034 p.mainBus = mainBus
1035 p.value = *components.NewRegister("P", p.mainBus, p.mainBus)
1036
1037}
1038
1039func (p *DumbPeripheral) Update() {
1040 p.updateEnabled()

Callers

nothing calls this directly

Calls 1

NewRegisterFunction · 0.92

Tested by

no test coverage detected