(instruction uint16, inputRegisters [4]uint16, expectedOutputRegisters [4]uint16, t *testing.T)
| 806 | } |
| 807 | |
| 808 | func testInstruction(instruction uint16, inputRegisters [4]uint16, expectedOutputRegisters [4]uint16, t *testing.T) { |
| 809 | c := SetUpCPU() |
| 810 | setMemoryLocation(c, 0x0000, instruction) |
| 811 | |
| 812 | for i, r := range inputRegisters { |
| 813 | setRegister(c, i, r) |
| 814 | } |
| 815 | |
| 816 | c.SetIAR(0x0000) |
| 817 | |
| 818 | doFetchDecodeExecute(c) |
| 819 | |
| 820 | checkRegisters(c, expectedOutputRegisters[0], expectedOutputRegisters[1], expectedOutputRegisters[2], expectedOutputRegisters[3], t) |
| 821 | } |
| 822 | |
| 823 | func TestALUShiftLeft(t *testing.T) { |
| 824 | ClearMem() |
no test coverage detected