0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-08-05 02:26:33 +03:00

simplify reading logic

This commit is contained in:
bird_egop
2025-04-13 23:22:30 +03:00
parent 0ea3294c61
commit 00547ed273
13 changed files with 31 additions and 79 deletions

View File

@@ -64,8 +64,7 @@ public class OrImmToRm32Handler : InstructionHandler
return false;
}
uint imm32 = BitConverter.ToUInt32(CodeBuffer, position);
Decoder.SetPosition(position + 4);
uint imm32 = Decoder.ReadUInt32();
// Set the operands
instruction.Operands = $"{destOperand}, 0x{imm32:X8}";