Class Omf51ExternalDef
java.lang.Object
ghidra.app.util.bin.format.omf.omf51.Omf51ExternalDef
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionOmf51ExternalDef
(BinaryReader reader, boolean largeSegmentId) Creates a newOmf51ExternalDef
-
Method Summary
Modifier and TypeMethodDescriptionbyte
Returns the block type (should always be 2 - ID_BLOCK_EXTERNAL.int
getExtId()
Returns the external reference id.byte
getInfo()
Returns the symbol info.getName()
Returns the symbol name.int
Returns the register bank this procedure is fixed to.int
Returns the usage type (CODE, XDATA, etc).boolean
Returns whether or not this procedure is fixed to a register bank.boolean
Returns whether or not this symbol is a variable or not.
-
Field Details
-
ID_BLOCK_SEGMENT
public static final int ID_BLOCK_SEGMENT- See Also:
-
ID_BLOCK_RELOCATABLE
public static final int ID_BLOCK_RELOCATABLE- See Also:
-
ID_BLOCK_EXTERNAL
public static final int ID_BLOCK_EXTERNAL- See Also:
-
-
Constructor Details
-
Omf51ExternalDef
Creates a newOmf51ExternalDef
- Parameters:
reader
- ABinaryReader
positioned at the start of the external definitionlargeSegmentId
- True if the external ID is 2 bytes; false if 1 byte- Throws:
IOException
- if an IO-related error occurred
-
-
Method Details
-
getBlockType
public byte getBlockType()Returns the block type (should always be 2 - ID_BLOCK_EXTERNAL.- Returns:
- the block type (should always be 2 - ID_BLOCK_EXTERNAL
-
getExtId
public int getExtId()Returns the external reference id.- Returns:
- the external reference id
-
getInfo
public byte getInfo()Returns the symbol info.- Returns:
- the symbol info
-
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
-
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
-