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

Function EdReg

source/test/testCPU.cpp:2927–2949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2925}
2926
2927void EdReg(int instruction, int ed, struct Data* data) {
2928 while (data->valid) {
2929 Reg* reg = &cpu->reg[ed];
2930 newInstruction(instruction, data->flags);
2931 reg->u32 = data->var1;
2932 runTestCPU();
2933 assertResult(data, cpu, instruction, reg->u32, 0, -1, -1, 0, 0);
2934
2935 newInstruction(instruction, data->flags);
2936
2937 // this will generate flags so the above code can ignore flag generation
2938 // cmp eax, 0
2939 pushCode8(0x83);
2940 pushCode8(0xf8);
2941 pushCode8(0);
2942
2943 reg->u32 = data->var1;
2944 runTestCPU();
2945 assertResult(data, cpu, instruction, reg->u32, 0, -1, -1, 0, 0, true);
2946
2947 data++;
2948 }
2949}
2950
2951void Reg16Reg16(int instruction, struct Data* data, Reg* r1, Reg* r2) {
2952 while (data->valid) {

Callers 15

testIncEax0x240Function · 0.85
testIncEcx0x241Function · 0.85
testIncEdx0x242Function · 0.85
testIncEbx0x243Function · 0.85
testIncEsp0x244Function · 0.85
testIncEbp0x245Function · 0.85
testIncEsi0x246Function · 0.85
testIncEdi0x247Function · 0.85
testDecEax0x248Function · 0.85
testDecEcx0x249Function · 0.85
testDecEdx0x24aFunction · 0.85
testDecEbx0x24bFunction · 0.85

Calls 4

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

Tested by

no test coverage detected