www.delorie.com/gnu/docs/binutils/as_303.html   search  
 
Buy GNU books!


Using as

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.17.2 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'


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003