View previous topic :: View next topic |
Author |
Message |
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Thu Feb 26, 2009 4:10 am |
|
|
I see, that it's perfectly working. You can use general C programing as well, but it's slower.
P.S.: You can also use CCS C shift_left() and similar functions. |
|
|
viknes1985
Joined: 11 Nov 2008 Posts: 24
|
my output |
Posted: Thu Feb 26, 2009 11:33 pm |
|
|
I getting
FF
FF
FF
FF
FF
FF
FF
FF
apparently i guess, shift_left cannot be used at here. If it shifted to left, the MSB will lost. Am i right? I tried "rotate_left (address, bytes)" function, but it's not dealing with the carry.... So any idea.
Thanks in advance |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Thu Feb 26, 2009 11:59 pm |
|
|
Your original code is shifting in one bit (through carry flag)- If it's constantly "1", the array will show all FF, at least after 64 shifts. |
|
|
|