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

Function testJNL

source/test/testCPU.cpp:5892–5912  ·  view source on GitHub ↗

SF == OF

Source from the content-addressed store, hash-verified

5890
5891// SF == OF
5892void testJNL(U8 instruction) {
5893 testJ(instruction, SF | OF, true);
5894 testJ(instruction, ZF | PF | AF | CF, true);
5895
5896 testJ(instruction, SF | PF, false);
5897 testJ(instruction, SF | CF, false);
5898 testJ(instruction, SF | AF, false);
5899 testJ(instruction, SF | ZF, false);
5900
5901 testJ(instruction, OF | PF, false);
5902 testJ(instruction, OF | CF, false);
5903 testJ(instruction, OF | AF, false);
5904 testJ(instruction, OF | ZF, false);
5905
5906 // signed: if not less (SF=OF)
5907 testJumpCmp(instruction, 0, 0, true);
5908 testJumpCmp(instruction, 1, 0, true);
5909 testJumpCmp(instruction, 0, 1, false);
5910 testJumpCmp(instruction, 1, 0xffffffff, true);
5911 testJumpCmp(instruction, 0xffffffff, 1, false);
5912}
5913
5914void testJL0x7c() {
5915 cpu->big = false;

Callers 2

testJNL0x7dFunction · 0.85
testJNL0x27dFunction · 0.85

Calls 2

testJFunction · 0.85
testJumpCmpFunction · 0.85

Tested by

no test coverage detected