MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / testJZ

Function testJZ

source/test/testCPU.cpp:5660–5675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5658}
5659
5660void 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
5677void testJNZ(U8 instruction) {
5678 testJ(instruction, ZF, false);

Callers 2

testJZ0x74Function · 0.85
testJZ0x274Function · 0.85

Calls 2

testJFunction · 0.85
testJumpCmpFunction · 0.85

Tested by

no test coverage detected