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

Method SetInputWire

components/bus.go:25–27  ·  view source on GitHub ↗
(index int, value bool)

Source from the content-addressed store, hash-verified

23}
24
25func (b *Bus) SetInputWire(index int, value bool) {
26 b.wires[index].Update(value)
27}
28func (b *Bus) GetOutputWire(index int) bool {
29 return b.wires[index].Get()
30}

Callers 1

SetValueMethod · 0.95

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected