(jmpConditionInstr, destination, initialInstr uint16, inputRegisters [4]uint16, expectedIAR uint16, t *testing.T)
| 562 | } |
| 563 | |
| 564 | func testJMPConditional(jmpConditionInstr, destination, initialInstr uint16, inputRegisters [4]uint16, expectedIAR uint16, t *testing.T) { |
| 565 | c := SetUpCPU() |
| 566 | |
| 567 | var insAddr uint16 = 0x0000 |
| 568 | |
| 569 | setMemoryLocation(c, insAddr, initialInstr) |
| 570 | setMemoryLocation(c, insAddr+1, jmpConditionInstr) |
| 571 | setMemoryLocation(c, insAddr+2, destination) |
| 572 | |
| 573 | c.SetIAR(insAddr) |
| 574 | |
| 575 | setRegisters(c, inputRegisters) |
| 576 | |
| 577 | doFetchDecodeExecute(c) |
| 578 | doFetchDecodeExecute(c) |
| 579 | |
| 580 | // check IAR |
| 581 | checkIAR(c, expectedIAR, t) |
| 582 | } |
| 583 | |
| 584 | func TestCLF(t *testing.T) { |
| 585 | ClearMem() |
no test coverage detected