(initialInstruction uint16, initialRegisters [4]uint16, t *testing.T)
| 594 | } |
| 595 | |
| 596 | func testCLF(initialInstruction uint16, initialRegisters [4]uint16, t *testing.T) { |
| 597 | var insAddr uint16 = 0x0000 |
| 598 | |
| 599 | c := SetUpCPU() |
| 600 | |
| 601 | setMemoryLocation(c, insAddr, initialInstruction) |
| 602 | setMemoryLocation(c, insAddr+1, 0x0060) |
| 603 | |
| 604 | c.SetIAR(insAddr) |
| 605 | |
| 606 | setRegisters(c, initialRegisters) |
| 607 | |
| 608 | doFetchDecodeExecute(c) |
| 609 | doFetchDecodeExecute(c) |
| 610 | |
| 611 | checkFlagsRegister(c, false, false, false, false, t) |
| 612 | } |
| 613 | |
| 614 | func TestALUAdd(t *testing.T) { |
| 615 | ClearMem() |
no test coverage detected