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

Method SetInputWire

components/components.go:458–460  ·  view source on GitHub ↗
(index int, value bool)

Source from the content-addressed store, hash-verified

456}
457
458func (c *Comparator) SetInputWire(index int, value bool) {
459 c.inputs[index].Update(value)
460}
461
462func (c *Comparator) Update() {
463 // these start out as 1 and 0 respectively

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected