| 2748 | } |
| 2749 | |
| 2750 | void 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 | |
| 2777 | void AxIw(int instruction, struct Data* data) { |
| 2778 | while (data->valid) { |
no test coverage detected