Class Omf51Segment
java.lang.Object
ghidra.app.util.bin.format.omf.omf51.Omf51Segment
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOmf51Segment
(BinaryReader reader, boolean largeSegmentId) Creates a newOmf51Segment
-
Method Summary
Modifier and TypeMethodDescriptionint
base()
Returns the segment base address.int
getType()
Returns the segment type (CODE, XDATA, etc).int
id()
Returns the segment id.byte
info()
Returns the segment info.boolean
Returns whether or not this segment is absolute.boolean
isCode()
Returns whether or not this segment is code.name()
Returns the segment name.byte
relType()
Returns the segment relocation type.int
size()
Returns the segment size.
-
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:
-
ABS
public static final int ABS- See Also:
-
UNIT
public static final int UNIT- See Also:
-
BITADDRESSABLE
public static final int BITADDRESSABLE- See Also:
-
INPAGE
public static final int INPAGE- See Also:
-
INBLOCK
public static final int INBLOCK- See Also:
-
PAGE
public static final int PAGE- See Also:
-
-
Constructor Details
-
Omf51Segment
Creates a newOmf51Segment
- Parameters:
reader
- ABinaryReader
positioned at the start of the segment definitionlargeSegmentId
- True if the segment ID is 2 bytes; false if 1 byte- Throws:
IOException
- if an IO-related error occurred
-
-
Method Details
-
id
public int id()Returns the segment id.- Returns:
- the segment id
-
info
public byte info()Returns the segment info.- Returns:
- the segment info
-
relType
public byte relType()Returns the segment relocation type.- Returns:
- the segment relocation type
-
base
public int base()Returns the segment base address.- Returns:
- the segment base address
-
size
public int size()Returns the segment size.- Returns:
- the segment size
-
name
Returns the segment name.- Returns:
- the segment name
-
getType
public int getType()Returns the segment type (CODE, XDATA, etc).- Returns:
- the segment type (CODE, XDATA, etc)
-
isCode
public boolean isCode()Returns whether or not this segment is code.- Returns:
- whether or not this segment is code
-
isAbsolute
public boolean isAbsolute()Returns whether or not this segment is absolute.- Returns:
- whether or not this segment is absolute
-