whatthbuck
Member
We are converting an old GE to a S7 as a rush project.
Don't you love the 4:30 on Friday phone calls.
I need to know how a specific memory space works with an instruction.
In the code they use SHL (word) and SHR (word) on %T0001 (bit?)
I'm assuming that on execution of the SHL T0001 is moved to T0002 and So on until T0015 is moved to T0016 and T0016 is lost. Also B1 is written to T0001, after the old value of T001 is moved to T002.
With bits in the following format.
MSB LSB
T0016 T0015 T0014 .....T0008 T0007 T0006.....T0002 T0001
I'm also assuming that SHR does a similar function where T0016 is moved to T0015 and so on until T0002 is moved to T0001, also B1 is written to T0016.
Thanks in advance for corrections and verification and advice.
Don't you love the 4:30 on Friday phone calls.
I need to know how a specific memory space works with an instruction.
In the code they use SHL (word) and SHR (word) on %T0001 (bit?)
I'm assuming that on execution of the SHL T0001 is moved to T0002 and So on until T0015 is moved to T0016 and T0016 is lost. Also B1 is written to T0001, after the old value of T001 is moved to T002.
With bits in the following format.
MSB LSB
T0016 T0015 T0014 .....T0008 T0007 T0006.....T0002 T0001
I'm also assuming that SHR does a similar function where T0016 is moved to T0015 and so on until T0002 is moved to T0001, also B1 is written to T0016.
Thanks in advance for corrections and verification and advice.