Indirect program addressing, ijmp and icall, Relative program addressing, rjmp and rcall, Atmega163(l) – Rainbow Electronics ATmega163L User Manual
Page 14

ATmega163(L)
14
Constant Addressing Using The LPM and SPM Instructions
Figure 18. Code Memory Constant Addressing
Constant byte address is specified by the Z-register contents. The 15 MSBs select word address (0 - 8K). For LPM, the
LSB selects low byte if cleared (LSB = 0) or high byte if set (LSB = 1). For SPM, the LSB should be cleared.
Indirect Program Addressing, IJMP and ICALL
Figure 19. 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).
Relative Program Addressing, RJMP and RCALL
Figure 20. Relative Program Memory Addressing
Program execution continues at address PC + k + 1. The relative address k is from -2048 to 2047.
$1FFF
$1FFF
$1FFF
1