View previous topic :: View next topic
|
Author |
Message |
kalpana
New User
Joined: 19 Nov 2004 Posts: 24 Location: Banglore
|
|
|
|
Could any let me know what is the signifcance of adding 2048 to R12 rather than direclty pointing to 4096 address
LA R12,2048(,R11)
LA R12,2048(,R12) / AHI R12,2048
Could any one help me with this query?
Thanks
Kalpana |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Because 4096 requires 4 hex digits and the load address only increments 3. |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
There is several way of doing this, one is the example as you have shown
another is.
LA R12,4095(R13)
LA R12,1(R12)
LA R11,4095(R12)
LA R11,1(R11)
LA R10,4095(R11)
LA R10,1(R10) |
|
Back to top |
|
|
|