Paulo Custodio

NAME

CPU::Z80::Disassembler::Format - Format output of disassembler

SYNOPSYS

  use CPU::Z80::Disassembler::Format;
  print format_hex($x), format_hex2($x), format_hex4($x); format_bin8($x);
  print format_dis($x), format_str($x);

DESCRIPTION

Exports functions to format output values in the disassembler listing.

EXPORTS

Exports all functions by default.

FUNCTIONS

format_hex

Returns the string representation of a value in hexadecimal..

format_hex2

Returns the string representation of a byte in hexadecimal as 0xHH.

format_hex4

Returns the string representation of a word in hexadecimal as 0xHHHH.

format_bin8

Returns the string representation of a word in binary as 0b01010101.

format_dis

Returns the string representation of a signed byte in decimal as +0xHH, -0xHH or empty string for zero.

format_str

Returns the string representation of an assembly string: single-quted, all single-quotes inside are doubled.

BUGS, FEEDBACK, AUTHORS, COPYRIGHT and LICENCE

See CPU::Z80::Disassembler.