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

Method Index

components/decoders.go:80–88  ·  view source on GitHub ↗

Returns the index which is enabled

()

Source from the content-addressed store, hash-verified

78
79// Returns the index which is enabled
80func (d *Decoder3x8) Index() int {
81 for i := range d.outputs {
82 if d.outputs[i].Get() {
83 return i
84 }
85 }
86
87 return 0
88}
89
90func (d *Decoder3x8) Update(inputA, inputB, inputC bool) {
91 d.inputA.Update(inputA)

Callers 7

checkDecoder4x16OutputFunction · 0.45
checkDecoder8x256OutputFunction · 0.45
UpdateMethod · 0.45
StringMethod · 0.45
UpdateIncomingMethod · 0.45
UpdateOutgoingMethod · 0.45
UpdateMethod · 0.45

Calls 1

GetMethod · 0.45

Tested by 2

checkDecoder4x16OutputFunction · 0.36
checkDecoder8x256OutputFunction · 0.36