Parameter Definition of Printer Control Codes

Some printer control codes require that parameters be specified. Pay particular attention when defining a parameter because how this is done depends on the parameter type. If the definition method for another type is used, the desired output will not be obtained.

The following table lists printer control code parameter types and their meanings:

Table 1. Printer Control Code Parameter Types
Parameter Type Meaning
byte-value One-byte parameter.
byte-values

Multibyte parameter.
  Used if operands are fixed.

word-value(HL) One-word parameter (higher and lower bytes).
word-value(LH) One-word parameter (lower and higher bytes).
length(HL)-values

Multibyte parameter requiring operands.
  An operand consists of a higher and lower byte.
  Used if operands are variable.

length(LH)-values

Multibyte parameter requiring operands.
  An operand consists of a lower and higher byte.
  Used if operands are variable.

length(HL)-images

Image data requiring operands.
  An operand consists of a higher and lower byte.

length(LH)-images

Image data requiring operands.
  An operand consists of a lower and higher byte.

decimal-characters    Decimal characters parameter.