(t *testing.T)
| 36 | } |
| 37 | |
| 38 | func TestInstructionReceivedFromMemory(t *testing.T) { |
| 39 | ClearMem() |
| 40 | c := SetUpCPU() |
| 41 | |
| 42 | instructions := []uint16{0x008A, 0x0082, 0x0088, 0x0094, 0x00B1} |
| 43 | |
| 44 | var addr uint16 = 0xF00F |
| 45 | for _, b := range instructions { |
| 46 | setMemoryLocation(c, addr, b) |
| 47 | addr++ |
| 48 | } |
| 49 | |
| 50 | c.SetIAR(0xF00F) |
| 51 | |
| 52 | for _, b := range instructions { |
| 53 | doFetchDecodeExecute(c) |
| 54 | checkIR(c, b, t) |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | func TestFlagsRegisterAllFalse(t *testing.T) { |
| 59 | ClearMem() |
nothing calls this directly
no test coverage detected