Class Omf51Fixup
java.lang.Object
ghidra.app.util.bin.format.omf.omf51.Omf51Fixup
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionOmf51Fixup(BinaryReader reader, boolean largeBlockId) Creates a newOmf51Fixup -
Method Summary
Modifier and TypeMethodDescriptionintReturns the operand id (segment ID or EXT ID).intReturns the operand block type (ID BLK).intReturns the operand offset.intReturns the reference location (REFLOC).intReturns the reference type (REF TYP).
-
Field Details
-
REF_TYPE_LOW
public static final int REF_TYPE_LOW- See Also:
-
REF_TYPE_BYTE
public static final int REF_TYPE_BYTE- See Also:
-
REF_TYPE_RELATIVE
public static final int REF_TYPE_RELATIVE- See Also:
-
REF_TYPE_HIGH
public static final int REF_TYPE_HIGH- See Also:
-
REF_TYPE_WORD
public static final int REF_TYPE_WORD- See Also:
-
REF_TYPE_INBLOCK
public static final int REF_TYPE_INBLOCK- See Also:
-
REF_TYPE_BIT
public static final int REF_TYPE_BIT- See Also:
-
REF_TYPE_CONV
public static final int REF_TYPE_CONV- See Also:
-
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
-
Omf51Fixup
Creates a newOmf51Fixup- Parameters:
reader- ABinaryReaderpositioned at the start of the fixuplargeBlockId- True if the block ID is 2 bytes; false if 1 byte- Throws:
IOException- if an IO-related error occurred
-
-
Method Details
-
getRefLoc
public int getRefLoc()Returns the reference location (REFLOC).- Returns:
- the reference location (REFLOC)
-
getRefType
public int getRefType()Returns the reference type (REF TYP).- Returns:
- the reference type (REF TYP)
-
getBlockType
public int getBlockType()Returns the operand block type (ID BLK).- Returns:
- the operand block type (ID BLK)
-
getBlockId
public int getBlockId()Returns the operand id (segment ID or EXT ID).- Returns:
- the operand id (segment ID or EXT ID)
-
getOffset
public int getOffset()Returns the operand offset.- Returns:
- the operand offset
-