()
| 285 | } |
| 286 | |
| 287 | func 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 | |
| 298 | type CPU struct { |
| 299 | gpReg0 components.Register |
no test coverage detected