Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djhworld/simple-computer
/ NewORer
Function
NewORer
components/components.go:291–299 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
289
}
290
291
func
NewORer() *ORer {
292
o := new(ORer)
293
294
for
i, _ :=
range
o.gates {
295
o.gates[i] = *circuit.NewORGate()
296
}
297
298
return
o
299
}
300
301
func
(o *ORer) ConnectOutput(b Component) {
302
o.next = b
Callers
3
NewALU
Function · 0.92
NewIsZero
Function · 0.85
TestORer
Function · 0.85
Calls
1
NewORGate
Function · 0.92
Tested by
1
TestORer
Function · 0.68