Node:M68HC11-Syntax, Next:M68HC11-Float, Previous:M68HC11-Opts, Up:M68HC11-Dependent

#### Syntax

In the M68HC11 syntax, the instruction name comes first and it may be followed by one or several operands (up to three). Operands are separated by comma (`,`). In the normal mode, `as` will complain if too many operands are specified for a given instruction. In the MRI mode (turned on with `-M` option), it will treat them as comments. Example:

         inx
         lda  #23
         bset 2,x #4
         brclr *bot #8 foo

The following addressing modes are understood:

Immediate
  `#`number``
Address Register
  ``number`,X`, ``number`,Y`

  The number may be omitted in which case 0 is assumed.

Direct Addressing mode
  `*`symbol``, or `*`digits``
Absolute
  ``symbol``, or ``digits``