![]() |
![]()
| ![]() |
![]()
NAMECPU::Z80::Assembler::Segment - Represents one segment of assembly opcodes SYNOPSISuse CPU::Z80::Assembler::Segment; my $segment = CPU::Z80::Assembler::Segment->new( name => $name, address => 0, line => $line, child => [$opcode, ...]); $self->add(@opcodes); DESCRIPTIONThis module defines the class that represents one continuous segment of assembly instruction opcodes CPU::Z80::Assembler::Opcode. EXPORTSNothing. FUNCTIONSnewCreates a new object, see Class::Struct. childEach child is one CPU::Z80::Assembler::Opcode object. nameGet/set of segment name. addressGet/set of base address of the segment. lineGet/set the line - text, file name and line number of the start of the segment. addAdds the opcodes to the segment. The line of the first opcode added is copied to the segment for error messages. BUGS and FEEDBACKSee CPU::Z80::Assembler. SEE ALSOCPU::Z80::Assembler CPU::Z80::Assembler::Opcode Asm::Preproc::Line Class::Struct AUTHORS, COPYRIGHT and LICENCESee CPU::Z80::Assembler.
|