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

Function testJS

source/test/testCPU.cpp:5772–5786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5770}
5771
5772void testJS(U8 instruction) {
5773 testJ(instruction, SF, true);
5774 testJ(instruction, CF, false);
5775 testJ(instruction, OF, false);
5776 testJ(instruction, PF, false);
5777 testJ(instruction, AF, false);
5778 testJ(instruction, ZF, false);
5779
5780 // if sign(SF = 1)
5781 testJumpCmp(instruction, 0, 0, false);
5782 testJumpCmp(instruction, 1, 0, false);
5783 testJumpCmp(instruction, 0, 1, true);
5784 testJumpCmp(instruction, 1, 0xffffffff, false);
5785 testJumpCmp(instruction, 0xffffffff, 1, true);
5786}
5787
5788void testJNS(U8 instruction) {
5789 testJ(instruction, SF, false);

Callers 2

testJS0x78Function · 0.85
testJS0x278Function · 0.85

Calls 2

testJFunction · 0.85
testJumpCmpFunction · 0.85

Tested by

no test coverage detected