Bit Shift - easy one for you :)
GeeksGoneBad
Posts: 100
I have this bit shift thing that I'm using - it works and I don't have any problems but I want to make sure I'm doing things the best I can bottom line I want to cycle through a simple bit pattern (%1000) twice
Thanks for any tips to make this any better
Jamie
dira[0..3] := %1111 repeat 2 outa[0..3] := %1000 waitcnt(clkfreq/8 + cnt) repeat 3 outa[0..3] >>= 1 waitcnt(clkfreq/8 + cnt)
Thanks for any tips to make this any better
Jamie
Comments
rotating a variable past the output window...
Using the decode operator, |< ...
Andy
The books can tell you what things do, and I can figure out how to do something, but I'm just never sure if there are better ways
Jamie