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

Function AxIw

source/test/testCPU.cpp:2777–2802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2775}
2776
2777void AxIw(int instruction, struct Data* data) {
2778 while (data->valid) {
2779 newInstruction(instruction, data->flags);
2780 pushCode16(data->var2);
2781 EAX = DEFAULT;
2782 AX = data->var1;
2783 runTestCPU();
2784 assertResult(data, cpu, instruction, AX, 0, 0, -1, 0, 16);
2785
2786 newInstruction(instruction, data->flags);
2787 pushCode16(data->var2);
2788
2789 // this will generate flags so the above code can ignore flag generation
2790 // cmp eax, 0
2791 pushCode8(0x83);
2792 pushCode8(0xf8);
2793 pushCode8(0);
2794
2795 EAX = DEFAULT;
2796 AX = data->var1;
2797 runTestCPU();
2798 assertResult(data, cpu, instruction, AX, 0, 0, -1, 0, 16, true);
2799
2800 data++;
2801 }
2802}
2803
2804void EaxId(int instruction, struct Data* data) {
2805 while (data->valid) {

Callers 9

testAdd0x005Function · 0.85
testOr0x00dFunction · 0.85
testAdc0x015Function · 0.85
testSbb0x01dFunction · 0.85
testAnd0x025Function · 0.85
testSub0x02dFunction · 0.85
testXor0x035Function · 0.85
testCmp0x03dFunction · 0.85
testTestAxIw0xa9Function · 0.85

Calls 5

newInstructionFunction · 0.85
pushCode16Function · 0.85
runTestCPUFunction · 0.85
assertResultFunction · 0.85
pushCode8Function · 0.85

Tested by

no test coverage detected