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::JumpOpcode(3) User Contributed Perl Documentation CPU::Z80::Assembler::JumpOpcode(3)

CPU::Z80::Assembler::JumpOpcode - Represents one jump assembly instruction to be computed at link time

  use CPU::Z80::Assembler::JumpOpcode;
  $opcode = CPU::Z80::Assembler::Opcode->new(
                short_jump => CPU::Z80::Assemble::Opcode->new( ... JR instr ...),
                long_jump  => CPU::Z80::Assemble::Opcode->new( ... JP instr ...));
  $opcode->address;
  $opcode->line;
  $dist = short_jump_dist($address, \%symbol_table);
  $bytes = $opcode->bytes($address, \%symbol_table);
  $size = $opcode->size;

This module defines the class that represents one jump instruction to be added to the object code. The object contains both the short jump form and the long jump form.

During address allocation all short jumps that are out of range are replaced by long jumps.

Nothing.

Creates a new object.

Address where this opcode is loaded, computed at link time.

Returns the CPU::Z80::Assembler::Opcode object representing the short jump.

Returns the CPU::Z80::Assembler::Opcode object representing the long jump.

Get/set the line - text, file name and line number where the token was read.

Gets the short jump distance, in relation to the address of the next instruction.

Returns more than 127 or less than -128 if the short jump is out of range.

  $bytes = $opcode->bytes($address, \%symbol_table);

Computes all the expressions in the short jump and returns the bytes string with the result object code.

  $size = $opcode->size;

Return the number of bytes that the short_jump opcode will generate.

See CPU::Z80::Assembler.

CPU::Z80::Assembler CPU::Z80::Assembler::Opcode Asm::Preproc::Line

See CPU::Z80::Assembler.
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.