0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-20 08:18:36 +03:00

Implemented Group1 instruction handlers for CMP r/m8, imm8 and fixed OR r/m8, imm8

This commit is contained in:
bird_egop
2025-04-13 01:02:37 +03:00
parent 402cdc68fb
commit b8a37e626c
3 changed files with 275 additions and 3 deletions

View File

@ -91,9 +91,9 @@ public static class OpcodeMap
OneByteOpcodes[0x05] = "add"; // ADD EAX, imm32
// Group 1 instructions (ADD, OR, ADC, SBB, AND, SUB, XOR, CMP)
OneByteOpcodes[0x80] = "group1b";
OneByteOpcodes[0x81] = "group1d";
OneByteOpcodes[0x83] = "group1s"; // Sign-extended immediate
OneByteOpcodes[0x80] = "group1b"; // Group 1 8-bit operations with immediate 8-bit
OneByteOpcodes[0x81] = "group1d"; // Group 1 32-bit operations with immediate 32-bit
OneByteOpcodes[0x83] = "group1ds"; // Group 1 32-bit operations with immediate 8-bit sign-extended
// Group 3 instructions (TEST, NOT, NEG, MUL, IMUL, DIV, IDIV)
OneByteOpcodes[0xF6] = "group3b"; // 8-bit operations