Skip to content

wAx Error Messages

Chysn edited this page Jan 23, 2022 · 11 revisions

wAx adds several additional BASIC error messages, which can occur in both direct mode and during BASIC program execution.

?ASSEMBLY ERROR

You'll get an Assembly Error during any invalid assembly operation during the @ command, including bad syntax, unknown instructions, out-of-range operands, etc.

Example
.A 1000 STA #$42

?MISMATCH ERROR

The Mismatch Error indicates that one or more of the true/false assertions failed during the = command. This may indicate that a unit test has failed.

Example
.= C000 42

?TOO FAR ERROR

The Too Far Error indicates that the relative branch operand is out of range.

Example
.A 1800 BCC $4200

?CAN'T RESOLVE ERROR

The Can't Resolve Error indicates that a forward definition cannot be resolved. The instruction at the forward definition address is either an illegal or immediate mode instruction. Usually this error won't happen unless the code has been changed between the forward definition and the attempted resolution.

Example
.A 1800 JSR @D
.A 1800 INY
.A 1801 @D

?SYMBOL ERROR

The Symbol Error is a catch-all error for symbolic assembly issues. It can mean

  1. The label is invalid. There's a missing or illegal character after the label sigil (@). Valid labels are digits (0-9), letters (A-Z), and the forward reference label @&
  2. Too many symbols have been defined. Up to 18 labels may be defined, and up to 12 unresolved forward definitions can be stored
Example
.A 1000 ORA @#
Clone this wiki locally