(t *testing.T)
| 474 | } |
| 475 | |
| 476 | func TestJMPCAE(t *testing.T) { |
| 477 | ClearMem() |
| 478 | // Jump if Carry OR A is Larger OR A = B |
| 479 | |
| 480 | // carry condition |
| 481 | testJMPConditional(0x005E, 0x0090, 0x0081, [4]uint16{0x0004, 0xFFFF, 0x0001, 0x002}, 0x0090, t) |
| 482 | |
| 483 | // a larger |
| 484 | testJMPConditional(0x005E, 0x0020, 0x00F1, [4]uint16{0x0002, 0x0001, 0x0001, 0x002}, 0x0020, t) |
| 485 | |
| 486 | // a = b |
| 487 | testJMPConditional(0x005E, 0x0020, 0x00F1, [4]uint16{0x0002, 0x0002, 0x0001, 0x002}, 0x0020, t) |
| 488 | |
| 489 | // should not jump in false case |
| 490 | testJMPConditional(0x005E, 0x0021, 0x00F1, [4]uint16{0x0001, 0x0003, 0x0001, 0x0001}, 0x0003, t) |
| 491 | } |
| 492 | |
| 493 | func TestJMPCAZ(t *testing.T) { |
| 494 | ClearMem() |
nothing calls this directly
no test coverage detected