mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 08:18:36 +03:00
simplify reading logic
This commit is contained in:
@ -68,9 +68,8 @@ public class TestImmWithRm32Handler : InstructionHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
// Read the immediate value using BitConverter
|
||||
uint imm32 = BitConverter.ToUInt32(CodeBuffer, position);
|
||||
Decoder.SetPosition(position + 4);
|
||||
// Read the immediate value
|
||||
uint imm32 = Decoder.ReadUInt32();
|
||||
|
||||
// Set the operands
|
||||
instruction.Operands = $"{destOperand}, 0x{imm32:X8}";
|
||||
|
Reference in New Issue
Block a user