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

Method Output

circuit/gates.go:67–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67func (g *ORGate) Output() bool {
68 return g.output.Get()
69}
70
71func (g *ORGate) Update(inputA, inputB bool) {
72 g.output.Update(!(!inputA && !inputB))

Callers 15

UpdateMethod · 0.45
updateALUMethod · 0.45
runStep4GatesMethod · 0.45
runStep5GatesMethod · 0.45
runStep6GatesMethod · 0.45
runEnableOnIOMethod · 0.45
runEnableOnRegisterBMethod · 0.45
runEnableOnRegisterAMethod · 0.45
runEnableOnBusOneMethod · 0.45
runEnableOnACCMethod · 0.45
runEnableOnIARMethod · 0.45

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected