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