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

Function testJBE

source/test/testCPU.cpp:5714–5731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5712}
5713
5714void testJBE(U8 instruction) {
5715 testJ(instruction, ZF, true);
5716 testJ(instruction, CF, true);
5717 testJ(instruction, CF | ZF, true);
5718 testJ(instruction, CF | OF, true);
5719 testJ(instruction, ZF | OF, true);
5720 testJ(instruction, OF, false);
5721 testJ(instruction, PF, false);
5722 testJ(instruction, AF, false);
5723 testJ(instruction, SF, false);
5724
5725 // if below or equal (CF=1 or ZF=1)
5726 testJumpCmp(instruction, 0, 0, true);
5727 testJumpCmp(instruction, 1, 0, false);
5728 testJumpCmp(instruction, 0xffffffff, 0, false);
5729 testJumpCmp(instruction, 0, 1, true);
5730 testJumpCmp(instruction, 0, 0xffffffff, true);
5731}
5732
5733void testJNBE(U8 instruction) {
5734 testJ(instruction, ZF, false);

Callers 2

testJBE0x76Function · 0.85
testJBE0x276Function · 0.85

Calls 2

testJFunction · 0.85
testJumpCmpFunction · 0.85

Tested by

no test coverage detected