beautypg.com

Data indirect with pre- decrement, Data indirect with post- increment, Constant addressing using the lpm instruction – Rainbow Electronics AT90S2313 User Manual

Page 12

background image

12

AT90S2313

0839I–AVR–06/02

Data Indirect with Pre-
decrement

Figure 15. Data Indirect Addressing with Pre-decrement

The X-, Y-, or Z-register is decremented before the operation. Operand address is the
decremented contents of the X-, Y-, or Z-register.

Data Indirect with Post-
increment

Figure 16. Data Indirect Addressing with Post-increment

The X-, Y-, or Z-register is incremented after the operation. Operand address is the con-
tents of the X-, Y-, or Z-register prior to incrementing.

Constant Addressing Using
the LPM Instruction

Figure 17. Code Memory Constant Addressing

Constant byte address is specified by the Z-register contents. The 15 MSBs select word
address (0 - 1K), the LSB selects low byte if cleared (LSB = 0) or high byte if set (LSB =
1).