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 classPcodeEmitPacked.LabelRef
-
Field Summary
Fields Modifier and Type Field Description static intaddrsz_tagstatic intend_tagstatic intinst_tagstatic intop_tagstatic intspaceid_tagstatic intunimpl_tagstatic intvoid_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 voiddumpOffset(long val)Encode and dump an integer value to the packed byte streamPackedBytesgetPackedBytes()voidresolveRelatives()Now that we have seen all label templates and references convert the collected references into full relative addressesvoidwrite(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:PcodeEmitNow that we have seen all label templates and references convert the collected references into full relative addresses- Specified by:
resolveRelativesin 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
-
-