Skip to content

wAx Error Messages

Chysn edited this page Feb 1, 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 Assemble 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, implied, or accumulator mode instruction. Usually this error won't happen unless the code has been changed between the forward definition and the attempted resolution, although it could also suggest corruption of the symbol table.

Example
.A 1800 JSR @D
.A 1800 INY    ; NOTE ADDRESS
.A 1801 @D

?SYMBOL ERROR

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

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