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

Method updateDecoder

components/decoders.go:214–224  ·  view source on GitHub ↗
(a, b, c, d bool, decoderIndex int, outputWireStart int)

Source from the content-addressed store, hash-verified

212}
213
214func (dc *Decoder8x256) updateDecoder(a, b, c, d bool, decoderIndex int, outputWireStart int) {
215 if dc.decoderSelector.GetOutputWire(decoderIndex) {
216 dc.decoders4x16[decoderIndex].Update(a, b, c, d)
217
218 for i := 0; i < 16; i++ {
219 if dc.decoders4x16[decoderIndex].outputs[i].Get() {
220 dc.index = outputWireStart + i
221 }
222 }
223 }
224}

Callers 1

UpdateMethod · 0.95

Calls 3

GetOutputWireMethod · 0.65
UpdateMethod · 0.65
GetMethod · 0.45

Tested by

no test coverage detected