GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
CPU::Z80::Assembler::List(3) User Contributed Perl Documentation CPU::Z80::Assembler::List(3)

CPU::Z80::Assembler::List - Assembly listing output class

  use CPU::Z80::Assembler::List;
  my $lst = CPU::Z80::Assembler::List->new(input => $asm_input, output => \*STDOUT);
  $lst->add($line, $address, $bytes);
  $lst->flush();

This module handles the output of the assembly listing file. It is fead with each assembled opcode and generates the full assembly list file on the given output handle.

If output is undef, does not generate any output.

Nothing.

  my $lst = CPU::Z80::Assembler::List->new(input => $asm_input, output => \*STDOUT);

Creates a new object, see Class::Struct.

input is the input as passed to z80asm, i.e. list of text lines to parse or iterators that return text lines to parse.

output is the output file handle to receive the listing file. It can be an open file for writing, or one of the standard output file handles.

If output is undefined, no output is generated.

  $self->add($line, $address, $bytes);

Adds a new opcode to the output listing. Receives the opcode Asm::Preproc::Line, address and bytes. Generates the output lines including this new opcode.

The output is held in an internal buffer until an opcode for the next line is passed to a subsequent add() call.

The last output line is only output on flush() or DESTROY()

  $self->flush();

Dumps the current line to the output. Called on DESTROY().

2019-07-06 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.