5/8/2012 3:22 PM | |
Posts: 664 Rating:
|
Hai Yogendra, SLD3 - Byte pointer -- If you need data in byte oriented format you can use this[ eg, 1st byte,2nd byte etc] SLD4 - Word Pointer -- If you need data in word oriented format you can use this[ eg, 1st,2ndbyte, 3rd,4thbyte etc] SLD5 - Double word pointer -- If you need data in doubleword oriented format you can use this[ eg, floating values] Thanks®ards, Raj |
This contribution was helpful to
2 thankful Users |
5/8/2012 3:41 PM | |
Joined: 9/28/2005 Last visit: 8/27/2024 Posts: 2957 Rating:
|
Aha... now I'm interested. We here speak about POINTER data type. After I saw your post I've opened again Step-7 help to see pointer format and I'm sorry, but I have no idea of what will happen after lets say SLD4. Can you please make more detailed post as you information is very interesting to me (honestly never heard of it). |
Best regards, |
|
5/8/2012 3:42 PM | |
Joined: 9/28/2005 Last visit: 8/27/2024 Posts: 2957 Rating:
|
BTW data types is only in ANY pointer, but still I don't understand how you achieve this with SLD4, SLD5.... |
Best regards, |
|
5/9/2012 8:31 AM | |
Posts: 664 Rating:
|
Hai Darius, Sorry for Delay,as per your reply,i prepared one program, L 100 SLD 3 LAR1 L PIW[AR1,P#0.0] T MW10 From the abow example,with SLD 3,I am reding the PIW100 in MW10 !!! L 100 SLD 4 LAR1 L PIW[AR1,P#0.0] T MW20 From the abow example,with SLD4,I am reading the PIW200 in MW20 !!! L 100 SLD 5 LAR1 L PIW[AR1,P#0.0] T MW30 From the abow example,with SLD5,I am reading the PIW400 in MW20 !!! I thiank you understood what i mean by ..... Please check it and if any problem with my workout please let me know,because i am a little baby in pointer... Sorry for miss understood previously,... Thanks & regards, Raj
|
This contribution was helpful to
3 thankful Users |
5/9/2012 8:53 AM | |
Joined: 9/28/2005 Last visit: 8/27/2024 Posts: 2957 Rating:
|
Well now I understand, but it has nothing to do with a WORD, DWORD or REAL. You just multiply by 2 bu shifting left one position more. This approach could be be little bit missunderstanding as SLD3 is required to free 3 least significant bits for bit addressing. SLD4 is acceptable, but better maybe go SLD3 and then multiply by 2. It would be more 'correct' approach. |
Best regards, |
|
This contribution was helpful to
1 thankful Users |
5/9/2012 9:02 AM | |
Posts: 664 Rating:
|
Hai Darius, Thanks for your information.. From My previous Thread you may get in confused with Your huge knowledge in pointers, Sorry for that .... Thanks & Regards, Raj
|
This contribution was helpful to
1 thankful Users |
5/11/2012 4:55 AM | |
Joined: 11/9/2008 Last visit: 8/23/2024 Posts: 410 Rating:
|
Thanks Karnan & Darius for your valuable information.one more question when we use3 least significant bits? Please give me some example. Regards, Yogendra G.
|
Last edited by: YogendraG at: 5/13/2012 5:13 AM |
|
Follow us on