Whole document tree
    

Whole document tree

Using as: SH-Addressing
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.12.2.3 Addressing Modes

as understands the following addressing modes for the SH. Rn in the following refers to any of the numbered registers, but not the control registers.

Rn
Register direct

@Rn
Register indirect

@-Rn
Register indirect with pre-decrement

@Rn+
Register indirect with post-increment

@(disp, Rn)
Register indirect with displacement

@(R0, Rn)
Register indexed

@(disp, GBR)
GBR offset

@(R0, GBR)
GBR indexed

addr
@(disp, PC)
PC relative address (for branch or for addressing memory). The as implementation allows you to use the simpler form addr anywhere a PC relative address is called for; the alternate form is supported for compatibility with other assemblers.

#imm
Immediate data



This document was generated by root on January, 30 2002 using texi2html