Class Omf51PublicDef

java.lang.Object
ghidra.app.util.bin.format.omf.omf51.Omf51PublicDef

public class Omf51PublicDef extends Object
  • Field Details

  • Constructor Details

    • Omf51PublicDef

      public Omf51PublicDef(BinaryReader reader, boolean largeSegmentId) throws IOException
      Creates a new Omf51PublicDef
      Parameters:
      reader - A BinaryReader positioned at the start of the public definition
      largeSegmentId - 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

      public OmfString 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