6/12/2020 8:30 AM | |
Joined: 7/21/2009 Last visit: 7/10/2024 Posts: 12 Rating:
|
Hi, I have a question on the addressing by pointers used in the Piotr's post (in other topic - STL help). In the first part of the post you transfer 400 into pointer format (400 * 8) and then using pointer to load the address DBW400 by L DBW [AR1,P#0.0] instruction. But in the second part of your post you transfer 100 into pointer format (100 * 8) and you query the bit on DBX810.5 address (not DBX110.5) by A DBX[AR1,P#10,5]. Is it allright? Can somebody explain please? Thank you |
6/12/2020 9:20 AM | |
Joined: 1/28/2009 Last visit: 8/5/2024 Posts: 6844 Rating:
|
Dear user,
when you perform (100 * 8) and load it to AR1 , the byte address that pointer refers to it is 100.In case of "A DBX[AR1,P#10,5]" , You read DBX110.5. That is straight forward and you can function test as the following video shows you. I hope it helps, hdhosseini
|
This contribution was helpful to
2 thankful Users |
6/18/2020 7:18 AM | |
Posts: 66 Rating:
|
dear hossinie, can i ask why your DBX110.5 is triggered on and off repeatedly? if u do not have the pulse it should be on at all time correct ? |
Follow us on