(t *testing.T)
| 417 | } |
| 418 | |
| 419 | func TestJMPCE(t *testing.T) { |
| 420 | ClearMem() |
| 421 | // Jump If Carry or A = B |
| 422 | // carry condition |
| 423 | testJMPConditional(0x005A, 0x0090, 0x0081, [4]uint16{0x0004, 0xFFFF, 0x0001, 0x002}, 0x0090, t) |
| 424 | // a = b |
| 425 | testJMPConditional(0x005A, 0x0090, 0x0081, [4]uint16{0x0002, 0x0002, 0x0001, 0x002}, 0x0090, t) |
| 426 | // should not jump in false case |
| 427 | testJMPConditional(0x005A, 0x0091, 0x0081, [4]uint16{0x0001, 0x0002, 0x0001, 0x0001}, 0x0003, t) |
| 428 | } |
| 429 | |
| 430 | func TestJMPCZ(t *testing.T) { |
| 431 | ClearMem() |
nothing calls this directly
no test coverage detected