mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 16:18:37 +03:00
basic decompiler and fixes
This commit is contained in:
@ -42,13 +42,11 @@ public class JmpRel8Handler : InstructionHandler
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// Read the offset and calculate target address
|
||||
int position = Decoder.GetPosition();
|
||||
|
||||
sbyte offset = (sbyte)Decoder.ReadByte();
|
||||
|
||||
// Calculate target address (instruction address + instruction length + offset)
|
||||
uint targetAddress = (uint)(instruction.Address + 2 + offset);
|
||||
ulong targetAddress = instruction.Address + 2UL + (uint)offset;
|
||||
|
||||
// Format the target address
|
||||
instruction.Operands = $"0x{targetAddress:X8}";
|
||||
|
Reference in New Issue
Block a user