Class Omf51ExternalDef

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

public class Omf51ExternalDef extends Object
  • Field Details

  • Constructor Details

    • Omf51ExternalDef

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

      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
    • 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