CPU::Z80::Assembler::Segment - Represents one segment of assembly opcodes
use CPU::Z80::Assembler::Segment; my $segment = CPU::Z80::Assembler::Segment->new( name => $name, address => 0, line => $line, child => [$opcode, ...]); $self->add(@opcodes);
This module defines the class that represents one continuous segment of assembly instruction opcodes CPU::Z80::Assembler::Opcode.
Nothing.
Creates a new object, see Class::Struct.
Each child is one CPU::Z80::Assembler::Opcode object.
Get/set of segment name.
Get/set of base address of the segment.
Get/set the line - text, file name and line number of the start of the segment.
Adds the opcodes to the segment. The line of the first opcode added is copied to the segment for error messages.
See CPU::Z80::Assembler.
CPU::Z80::Assembler CPU::Z80::Assembler::Opcode Asm::Preproc::Line Class::Struct
To install CPU::Z80::Assembler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPU::Z80::Assembler
CPAN shell
perl -MCPAN -e shell install CPU::Z80::Assembler
For more information on module installation, please visit the detailed CPAN module installation guide.