Problem with << ?
Yesterday, i have a strange problem...
Code, that was working since weeks, doesn't work anymore....
I don't change the PIC (16F876), I don't update PBP, I only worked on the source (on other places) and has rearranged some variables to Bank0.
A subroutine convertes a byte to a word:
DummyW=(Dummy&%00011111)*15
The mainroutine has to double the word and store it to a word-variable:
Warte_Drive=DummyW<<1
There was a %00100001 in Dummy, so I get a %0000000000001111 in DummyW, but I get a %1000000000011110 in Warte_Drive after the "<<1"
Strange !
2 hours later I only change the "<<1" to "*2" and I get the supposed decimal 30 in Warte_Drive....
Bug ?
PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2
Bookmarks