| 2925 | } |
| 2926 | |
| 2927 | void 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 | |
| 2951 | void Reg16Reg16(int instruction, struct Data* data, Reg* r1, Reg* r2) { |
| 2952 | while (data->valid) { |
no test coverage detected