Bitwise Operations

Hi,

I have been using BasicMicro Stamp and Atom controller(s) for many years and have just switched to the EM1202 for the first time in a project. I have found it a great product, but there appears to be a huge omission in terms of programming - individual bit manipulation within byte/word/long variables. Unless I am missing something, there appears to be no easy way of doing this?

In a previous Atom application I used a 32-bit variable as a "register" to record 32 pass/fail criteria. There is facility in Atom Basic to simply turn individual bits in the variable on or off or use them in operations. You can also separate out any byte of a 16 or 32-bit variable and carry out many other bitwise operations. I can find no way to do these simply in Tibbo Basic.

I have a work-around by converting the variable to a 32-character binary string representation, manipulating the characters in the string, then converting back to a 32-bit variable. This is VERY slow at processing.

Am I missing something? If not, PLEASE can we have full bitwise operations in the next release? The Atom was superb at this, so please consult their manual for ideas! There is a whole range of operations I simply can't find a way of doing on the EM1202.

Hugh
 
sad I’m frustrated
Inappropriate?
1 person has this question

User_default_medium