Previous: Z8000-Regs, Up: Z8000 Syntax

9.33.2.3 Addressing Modes

as understands the following addressing modes for the Z8000:

rl n rh n r n rr n rq n Register direct: 8bit, 16bit, 32bit, and 64bit registers.
@r n @rr n Indirect register: @rrn in segmented mode, @rn in unsegmented mode.
addr Direct: the 16 bit or 24 bit address (depending on whether the assembler is in segmented or unsegmented mode) of the operand is in the instruction.
address(r n ) Indexed: the 16 or 24 bit address is added to the 16 bit register to produce the final address in memory of the operand.
r n (# imm ) rr n (# imm ) Base Address: the 16 or 24 bit register is added to the 16 bit sign extended immediate displacement to produce the final address in memory of the operand.
r n (r m ) rr n (r m ) Base Index: the 16 or 24 bit register rn or rrn is added to the sign extended 16 bit index register rm to produce the final address in memory of the operand.
# xx Immediate data xx.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.