Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |
| en:multiasm:piot:chapter_4_5 [2026/06/22 21:47] – [Program Memory Addressing with Post-increment] pczekalski | en:multiasm:piot:chapter_4_5 [2026/06/23 13:30] (current) – [Data Indirect with Displacement] ktokarz |
|---|
| |
| =====Data Indirect with Displacement===== | =====Data Indirect with Displacement===== |
| The addressing with displacement calculated the sum of two values: the index register and the constant. As shown in figure {{ref>avr_addr_8}}, the operand address is the result of the q displacement contained in the instruction word, added to the Y or Z pointer. Rd/Rr specify the destination or source register. An example of indirect addressing with displacement is accessing an element of a previously defined data table. | The addressing with displacement calculates the sum of two values: the index register and the constant. As shown in figure {{ref>avr_addr_8}}, the operand address is the result of the q displacement contained in the instruction word, added to the Y or Z pointer. Rd/Rr specify the destination or source register. An example of indirect addressing with displacement is accessing an element of a previously defined data table. |
| <code asm> | <code asm> |
| LDD R2, Y+table | LDD R2, Y+table |