jmpTarget

If instruction is a jump or a call, get information about where the offset is and what it is.

nothrow @nogc public
bool
jmpTarget
(
ubyte[] code
,
ref addr c
,
out addr offset
)

Parameters

code ubyte[]

instruction bytes

c addr

address of start of instruction, not including prefix. Use calccodsize() to determine start not including prefix. Updated to be address of the offset part of the instruction. Caller determines if it is relative to the start of the next instruction or not.

offset addr

set to be address of jump target

Return Value

Type: bool

true if jump or call target

Meta