(t *testing.T)
| 397 | testJMPConditional(0x0052, 0x00AF, 0x00F1, [4]uint16{0x0010, 0x0011, 0x0001, 0x0001}, 0x0003, t) |
| 398 | } |
| 399 | func TestJMPZ(t *testing.T) { |
| 400 | ClearMem() |
| 401 | // perform NOT on R0 (0x00FF) to trigger zero flag |
| 402 | testJMPConditional(0x0051, 0x00AE, 0x00B0, [4]uint16{0xFFFF, 0x0001, 0x0001, 0x001}, 0x00AE, t) |
| 403 | |
| 404 | // should not jump in false case |
| 405 | testJMPConditional(0x0051, 0x00AF, 0x00B0, [4]uint16{0x0000, 0x0011, 0x0001, 0x0001}, 0x0003, t) |
| 406 | } |
| 407 | |
| 408 | func TestJMPCA(t *testing.T) { |
| 409 | ClearMem() |
nothing calls this directly
no test coverage detected