Class PcodeEmitPacked
- java.lang.Object
-
- ghidra.app.plugin.processors.sleigh.PcodeEmit
-
- ghidra.app.plugin.processors.sleigh.PcodeEmitPacked
-
public class PcodeEmitPacked extends PcodeEmit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PcodeEmitPacked.LabelRef
-
Field Summary
Fields Modifier and Type Field Description static int
addrsz_tag
static int
end_tag
static int
inst_tag
static int
op_tag
static int
spaceid_tag
static int
unimpl_tag
static int
void_tag
-
Constructor Summary
Constructors Constructor Description PcodeEmitPacked()
Pcode emitter constructor for producing a packed binary representation for unimplemented or empty responses.PcodeEmitPacked(ParserWalker walk, InstructionContext ictx, int fallOffset, PcodeOverride override, UniqueAddressFactory uniqueFactory)
Pcode emitter constructor for producing a packed binary representation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dumpOffset(long val)
Encode and dump an integer value to the packed byte streamPackedBytes
getPackedBytes()
void
resolveRelatives()
Now that we have seen all label templates and references convert the collected references into full relative addressesvoid
write(int val)
-
Methods inherited from class ghidra.app.plugin.processors.sleigh.PcodeEmit
build, getFallOffset, getStartAddress, getWalker
-
-
-
-
Field Detail
-
unimpl_tag
public static final int unimpl_tag
- See Also:
- Constant Field Values
-
inst_tag
public static final int inst_tag
- See Also:
- Constant Field Values
-
op_tag
public static final int op_tag
- See Also:
- Constant Field Values
-
void_tag
public static final int void_tag
- See Also:
- Constant Field Values
-
spaceid_tag
public static final int spaceid_tag
- See Also:
- Constant Field Values
-
addrsz_tag
public static final int addrsz_tag
- See Also:
- Constant Field Values
-
end_tag
public static final int end_tag
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PcodeEmitPacked
public PcodeEmitPacked()
Pcode emitter constructor for producing a packed binary representation for unimplemented or empty responses.
-
PcodeEmitPacked
public PcodeEmitPacked(ParserWalker walk, InstructionContext ictx, int fallOffset, PcodeOverride override, UniqueAddressFactory uniqueFactory)
Pcode emitter constructor for producing a packed binary representation.- Parameters:
delayContexts
- delay slotted instruction contextsfallOffset
- default instruction fall offset (i.e., instruction length including delay slotted instructions)override
- required if pcode overrides are to be utilizeduniqueFactory
- required when override specified or if overlay normalization is required
-
-
Method Detail
-
getPackedBytes
public PackedBytes getPackedBytes()
-
resolveRelatives
public void resolveRelatives()
Description copied from class:PcodeEmit
Now that we have seen all label templates and references convert the collected references into full relative addresses- Specified by:
resolveRelatives
in classPcodeEmit
-
write
public void write(int val)
-
dumpOffset
public void dumpOffset(long val)
Encode and dump an integer value to the packed byte stream- Parameters:
val
- is the integer to write
-
-