CPU::Z80::Disassembler::Label - Label used in the disassembled program
$label = CPU::Z80::Disassembler::Label->new($addr, $name, @from_addr); $label->add_refer(@from_addr); my @refer = $label->refer_from; print $label->label_string; print $label->equ_string;
Represents one label in the disassembled program. The label contains a name, an address and a list of addresses of opcodes that refer to it.
Creates a new object.
Gets/sets the label name.
Gets/sets the comment to add to the definition of the label.
Gets the label address. The address cannot be modified.
Add the given addresses as references to this label, i.e. places from where this label is used.
Return the list of all addresses from which this label is used.
Returns the string to be used in an assembly file to define this label at the current location counter:
LABEL: ; COMMENT
Returns the string to be used in an assembly file to define this label as a constant:
LABEL equ ADDR ; COMMENT