(clockState bool)
| 561 | } |
| 562 | |
| 563 | func (c *CPU) step(clockState bool) { |
| 564 | c.stepper.Update(clockState) |
| 565 | c.runStep4Gates() |
| 566 | c.runStep5Gates() |
| 567 | c.runStep6Gates() |
| 568 | |
| 569 | c.runEnable(clockState) |
| 570 | c.updateStates() |
| 571 | if clockState { |
| 572 | c.runEnable(false) |
| 573 | c.updateStates() |
| 574 | } |
| 575 | |
| 576 | c.runSet(clockState) |
| 577 | c.updateStates() |
| 578 | if clockState { |
| 579 | c.runSet(false) |
| 580 | c.updateStates() |
| 581 | } |
| 582 | |
| 583 | // main bus should not have residual data! |
| 584 | c.clearMainBus() |
| 585 | } |
| 586 | |
| 587 | func (c *CPU) clearMainBus() { |
| 588 | for i := 0; i < arch.BUS_WIDTH; i++ { |
no test coverage detected