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

Function AlIb

source/test/testCPU.cpp:2750–2775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2748}
2749
2750void AlIb(int instruction, struct Data* data) {
2751 while (data->valid) {
2752 newInstruction(instruction, data->flags);
2753 pushCode8(data->var2);
2754 EAX = DEFAULT;
2755 AL = data->var1;
2756 runTestCPU();
2757 assertResult(data, cpu, instruction, AL, 0, 0, -1, 0, 8);
2758
2759 newInstruction(instruction, data->flags);
2760 pushCode8(data->var2);
2761
2762 // this will generate flags so the above code can ignore flag generation
2763 // cmp eax, 0
2764 pushCode8(0x83);
2765 pushCode8(0xf8);
2766 pushCode8(0);
2767
2768 EAX = DEFAULT;
2769 AL = data->var1;
2770 runTestCPU();
2771 assertResult(data, cpu, instruction, AL, 0, 0, -1, 0, 8, true);
2772
2773 data++;
2774 }
2775}
2776
2777void AxIw(int instruction, struct Data* data) {
2778 while (data->valid) {

Callers 15

testAdd0x004Function · 0.85
testAdd0x204Function · 0.85
testOr0x00cFunction · 0.85
testOr0x20cFunction · 0.85
testAdc0x014Function · 0.85
testAdc0x214Function · 0.85
testSbb0x01cFunction · 0.85
testSbb0x21cFunction · 0.85
testAnd0x024Function · 0.85
testAnd0x224Function · 0.85
testSub0x02cFunction · 0.85
testSub0x22cFunction · 0.85

Calls 4

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

Tested by

no test coverage detected