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

Fixed XOR instruction handlers for consistent immediate value handling

This commit is contained in:
bird_egop
2025-04-13 19:26:08 +03:00
parent e91a0223f7
commit 56c12b552c
13 changed files with 644 additions and 42 deletions

View File

@ -44,9 +44,8 @@ public class XorAlImmHandler : InstructionHandler
return false;
}
// Read the immediate value
byte imm8 = CodeBuffer[position];
Decoder.SetPosition(position + 1);
// Read the immediate value using the decoder
byte imm8 = Decoder.ReadByte();
// Set the operands
instruction.Operands = $"al, 0x{imm8:X2}";