jayanth.devarayanadurga
Banned
- Joined
- Dec 4, 2012
- Messages
- 4,280
- Helped
- 822
- Reputation
- 1,654
- Reaction score
- 791
- Trophy points
- 1,393
- Location
- Bangalore, India
- Activity points
- 0
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
yes these register call pointer registers and contain two 8bit register see these picturesWhat is X, Y, Z? Register pairs? I can't understand the info in image. Can you explain?
Registers R27 and R26 contains 03H and 50H. So is X a register pair of R27 and R26?
first we use LDI for set the address that x-register point to itShould we use LDI instructions before using LD and LDD instructions? Registers are 8-bits wide. So, what actually did the LD instruction did?
exactlyI see final value of R15 is 37H.
But in the example R27 and R26 contains 0x03 and 0x50. What are those values? Address of some other register? Will the value 0x0350h is an address in data space? Finally value contained at address 0x0350 is 0x37 and it is copied to R15. Right? So, Indirectly we are loading the r15 register with value at address 0x0350. Right? From where did the value 0x37 came? What about LDD instruction?first we use LDI for set the address that x-register point to it
exactly
let's my explain itBut in the example R27 and R26 contains 0x03 and 0x50. What are those values? Address of some other register? Will the value 0x0350h is an address in data space?
RightFinally value contained at address 0x0350 is 0x37 and it is copied to R15. Right?
again Right:wink:So, Indirectly we are loading the r15 register with value at address 0x0350. Right?
0x37 is just an exampleFrom where did the value 0x37 came? What about LDD instruction?
LDI R31,$04
LDI R30,$01
LDD R0,Z+1
LDD R1,Z+0
LDD R2,Z+2
Yes Right :razz:address in data space value at address
after LDI R31, $04 and LDI R30, $01
Z will be 0x0401
After LDD R0, Z+1
R0 will be 0x62
After LDD R1, Z+0
R1 will be 0x50
After LDD R2, Z+2
R2 will be 0x6F
Right?
I have another question.
In the document I see there are LDD Rd, Y+q and LDD Rd, Z+q. Whay there is no LDD Rd, X+q?