Class Omf51PublicDef
java.lang.Object
ghidra.app.util.bin.format.omf.omf51.Omf51PublicDef
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionOmf51PublicDef(BinaryReader reader, boolean largeSegmentId) Creates a newOmf51PublicDef -
Method Summary
Modifier and TypeMethodDescriptionbytegetInfo()Returns the segment info.getName()Returns the symbol name.intReturns the offset into the segment.intReturns the register bank this procedure is fixed to.intgetSegId()Returns the segment id.intReturns the usage type (CODE, XDATA, etc).booleanReturns whether or not this procedure is fixed to a register bank.booleanReturns whether or not this procedure is indirectly callable.booleanReturns whether or not this symbol is a variable or not.
-
Field Details
-
CODE
public static final int CODE- See Also:
-
XDATA
public static final int XDATA- See Also:
-
DATA
public static final int DATA- See Also:
-
IDATA
public static final int IDATA- See Also:
-
BIT
public static final int BIT- See Also:
-
NUMBER
public static final int NUMBER- See Also:
-
REG_BANK_0
public static final int REG_BANK_0- See Also:
-
REG_BANK_1
public static final int REG_BANK_1- See Also:
-
REG_BANK_2
public static final int REG_BANK_2- See Also:
-
REG_BANK_3
public static final int REG_BANK_3- See Also:
-
-
Constructor Details
-
Omf51PublicDef
Creates a newOmf51PublicDef- Parameters:
reader- ABinaryReaderpositioned at the start of the public definitionlargeSegmentId- True if the segment ID is 2 bytes; false if 1 byte- Throws:
IOException- if an IO-related error occurred
-
-
Method Details
-
getSegId
public int getSegId()Returns the segment id.- Returns:
- the segment id
-
getInfo
public byte getInfo()Returns the segment info.- Returns:
- the segment info
-
getOffset
public int getOffset()Returns the offset into the segment.- Returns:
- the offset into the segment
-
getName
Returns the symbol name.- Returns:
- the symbol name
-
getUsageType
public int getUsageType()Returns the usage type (CODE, XDATA, etc).- Returns:
- the usage type (CODE, XDATA, etc)
-
isVariable
public boolean isVariable()Returns whether or not this symbol is a variable or not.- Returns:
- whether or not this symbol is a variable or not
-
isIndirectlyCallable
public boolean isIndirectlyCallable()Returns whether or not this procedure is indirectly callable.- Returns:
- whether or not this procedure is indirectly callable
-
isFixedReg
public boolean isFixedReg()Returns whether or not this procedure is fixed to a register bank.- Returns:
- whether or not this procedure is fixed to a register bank
-
getRegBank
public int getRegBank()Returns the register bank this procedure is fixed to.- Returns:
- the register bank this procedure is fixed to
-