7/22/2011 8:23 AM | |
Posts: 2348 Rating:
|
Actually there is START_ADDRESS, which contains proper pointer. By these instructions L P#P0.0 OD you just add area identifier to pointer. |
7/22/2011 8:31 AM | |
Joined: 1/28/2009 Last visit: 6/2/2023 Posts: 6803 Rating:
|
First check this: Step 7 Indirect addressing FAQ & Examples collection Programming a Loop with Indirect Addressing Averaging via ANY pointer Pointer transfer to a function Also your codes with comments: [code]L #SLOT_NO L 2 *I L 20 +I //Value calculated according to the formula L L#8 *D // shift to left 3 bits to create byte address T #STR_ADDR //transfer the created pointer //to an address L P#P0.0 // load format of a pointer OD //OR doubleword by calculated value T #STR_ADDR [/code] Regards |
Follow us on