
adccommunitymod (AutomationDirect) asked a question.
BUG in shift/rotate bits instruction ?
Created Date: May 09,2018
Created By: juance
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
The attached file shifts a 32-bit integer. When the input tag is an array with a variable as an index, the result is wrong. What is happening here ????
Created Date: May 09,2018
Created by: juance
The attached file shifts a 32-bit integer.
When the input tag is an array with a variable as an index, the result is wrong.
What is happening here ????
Created Date: May 09,2018
Created by: ADC_CommTeam02
There is an issue when pointing into the first element of an array using the SFR instruction, Array_Int(ptr), ptr=1. However, if you use just the array element tag name Array_Int(1) it will shift as expected.
I have entered a trouble ticket to get this issue fixed in a future release.
Workaround is to use any array element other 1 as the pointer until we get the issue fixed.