Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djhworld/simple-computer
/ NewIsZero
Function
NewIsZero
components/components.go:162–168 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
160
}
161
162
func
NewIsZero() *IsZero {
163
z := new(IsZero)
164
z.orer = *NewORer()
165
z.notGate = *circuit.NewNOTGate()
166
167
return
z
168
}
169
170
func
(z *IsZero) Reset() {
171
z.output.Update(false)
Callers
2
NewALU
Function · 0.92
TestIsZero
Function · 0.85
Calls
2
NewNOTGate
Function · 0.92
NewORer
Function · 0.85
Tested by
1
TestIsZero
Function · 0.68