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

Function NewInstructionDecoder3x8

cpu/cpu.go:287–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285}
286
287func NewInstructionDecoder3x8() *InstructionDecoder3x8 {
288 i := new(InstructionDecoder3x8)
289 i.decoder = *components.NewDecoder3x8()
290 for n := range i.selectorGates {
291 i.selectorGates[n] = *circuit.NewANDGate()
292 }
293 i.bit0NOTGate = *circuit.NewNOTGate()
294 return i
295
296}
297
298type CPU struct {
299 gpReg0 components.Register

Callers 1

NewCPUFunction · 0.85

Calls 3

NewDecoder3x8Function · 0.92
NewANDGateFunction · 0.92
NewNOTGateFunction · 0.92

Tested by

no test coverage detected