NAME

Language::Zcode::Parser::Opcode - parse one opcode

DESCRIPTION

This package parses one opcode. It uses the syntax described in the Z-spec's table, 14.1. It parses the opcode and its arguments into a hash:

opcode

Name of the opcode

opcode_address

Byte address of the opcode (in hex)

args

Arguments to a subroutine call

negate_jump

Negates the condition of a branch instruction

jump_return

Return true/false if branch condition is met, instead of jumping

Other keys are (almost) identical to the arg names in the spec. For example, "je a b ?(label)" yields keys a, b, and label. For example2, word-index is changed to word_index to make my life easier.