Class LabelCodeUnitFormat


public class LabelCodeUnitFormat extends BrowserCodeUnitFormat
A version of BrowserCodeUnitFormat that changes how labels are rendered in offcut situations.
  • Constructor Details

    • LabelCodeUnitFormat

      public LabelCodeUnitFormat(ToolOptions fieldOptions)
  • Method Details

    • getOffcutLabelStringForInstruction

      protected String getOffcutLabelStringForInstruction(Address offcutAddress, Instruction instruction, Address markupAddress)
      Description copied from class: CodeUnitFormat
      Generate label string. This may serve two use cases:
      • Generating operand label at markupAddress for referenced instruction and offcutAddress
      • Generating offcut label for an offcutAddress with instruction (markupAddress=null)
      Overrides:
      getOffcutLabelStringForInstruction in class CodeUnitFormat
      Parameters:
      offcutAddress - address for which generated label represents
      instruction - instruction containing offcut address
      markupAddress - address where a label will be referenced from (may be null)
      Returns:
      generated offcut label
    • getOffcutDataString

      protected String getOffcutDataString(Address offcutAddress, Data data)
      Overrides:
      getOffcutDataString in class CodeUnitFormat