| 5658 | } |
| 5659 | |
| 5660 | void testJZ(U8 instruction) { |
| 5661 | testJ(instruction, ZF, true); |
| 5662 | testJ(instruction, OF, false); |
| 5663 | testJ(instruction, PF, false); |
| 5664 | testJ(instruction, AF, false); |
| 5665 | testJ(instruction, CF, false); |
| 5666 | testJ(instruction, SF, false); |
| 5667 | |
| 5668 | // if zero (ZF=1) |
| 5669 | testJumpCmp(instruction, 0, 0, true); |
| 5670 | testJumpCmp(instruction, 1, 0, false); |
| 5671 | testJumpCmp(instruction, 0xffffffff, 0, false); |
| 5672 | testJumpCmp(instruction, 0, 1, false); |
| 5673 | testJumpCmp(instruction, 0, 0xffffffff, false); |
| 5674 | testJumpCmp(instruction, 0xffffffff, 0xffffffff, true); |
| 5675 | } |
| 5676 | |
| 5677 | void testJNZ(U8 instruction) { |
| 5678 | testJ(instruction, ZF, false); |
no test coverage detected