beautypg.com

Constant addressing using the lpm instruction, Indirect program addressing, ijmp and icall, Attiny26(l) – Rainbow Electronics ATtiny26L User Manual

Page 13

background image

13

ATtiny26(L)

1477B–AVR–04/02

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

Constant Addressing Using
the LPM Instruction

Figure 14. 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).

Indirect Program Addressing,
IJMP and ICALL

Figure 15. Indirect Program Memory Addressing

Program execution continues at address contained by the Z-register (i.e., the PC is
loaded with the contents of the Z-register).

$3FF

$000

PROGRAM MEMORY

$3FF

$000

PROGRAM MEMORY