Assembler Error Messages and Register Names as Labels

ZX Land #06

Assembler User Guide (cont.)

Messages

  • BAD MNEMONIC — incorrectly written processor instruction mnemonic
  • BAD OPERAND — incorrectly written operand of a processor instruction
  • BIG NUMBER — number too large for the written processor instruction, e.g. LD A,10000
  • SYNTAX HORROR — syntax error in the program line being entered
  • BAD STRING — incorrectly written character string
  • MEMORY FULL — not enough memory to save another program line
  • xxx UNKNOWN — undefined label “xxx”
  • SOURCE ERROR — damaged source text

To finish the description of the assembler, it is worth mentioning that register names can be used as label names. For example, entering the line

LD HL,+SP

means that SP becomes a label name.

For instructions of the type LD HL,(address), the line being entered must look like this:

LD HL,(SP

That is the end of this part of the article. In the next part, I’ll describe the monitor.

Jordan of Exodus

Share your thoughts about the article