Legacy Plugin Collection

addinstr

Allows you to add an instruction to the Z80 instruction set at runtime.

Syntax

.addinstr instruction args opcode size rule class [shift [or]]

Remarks

This directive only affects the Z80 assembler.

As the bundled Z80 assembler only supports a small subset of TASM's instruction types (NOP, R1, ZIX, ZBIT) this directive is of limited usefulness.

See TASMTABS.HTM in TASM's zip file for more information.

Example

TI-83 Plus ROM call using addinstr.

/* ROM call equates: */
.include "ti83plus.inc"

/* Instruction to invoke a ROM call: */
.addinstr B_CALL * EF 3 NOP 1

/* Using the new instruction: */
    b_call _puts

See Also