| 2775 | } |
| 2776 | |
| 2777 | void 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 | |
| 2804 | void EaxId(int instruction, struct Data* data) { |
| 2805 | while (data->valid) { |
no test coverage detected