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
See CPU::Z80::Disassembler.
To install CPU::Z80::Disassembler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPU::Z80::Disassembler
CPAN shell
perl -MCPAN -e shell install CPU::Z80::Disassembler
For more information on module installation, please visit the detailed CPAN module installation guide.