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:
@ -45,8 +45,7 @@ public class RetImmHandler : InstructionHandler
|
||||
}
|
||||
|
||||
// Read the immediate value
|
||||
ushort imm16 = BitConverter.ToUInt16(CodeBuffer, position);
|
||||
Decoder.SetPosition(position + 2);
|
||||
ushort imm16 = Decoder.ReadUInt16();
|
||||
|
||||
// Set the operands
|
||||
instruction.Operands = $"0x{imm16:X4}";
|
||||
|
Reference in New Issue
Block a user