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

format_hex4

Returns the string representation of a word in hexadecimal as $HHHH.

format_bin8

Returns the string representation of a word in binary as %01010101.

format_dis

Returns the string representation of a signed byte in hexadecimal as +$HH, -$HH or empty string for zero.

format_str

Returns the string representation of an assembly string: double-quoted, all double-quotes inside are escaped.

BUGS, FEEDBACK, AUTHORS, COPYRIGHT and LICENCE

See CPU::Z80::Disassembler.