Bitwise operation

Started by patratacus November 19, 2008
Hello,

I was having a hard time finding the documentation for bitwise
operations on BasicX. In a C compiler for other mcu, I could use
operands like >> to do bit shifting. Is there something like that in
BasicX?

Thanks,
Patrick
Hi,
I never see that in BX24. Parallax does but I never ran it in BX24. Normally to shift left I multiply by 2 or to shift right divide by 2 .
Regards,
rosarite

-----Original Message-----
From: patratacus
To: b...
Sent: Wed, 19 Nov 2008 10:43 am
Subject: [BasicX] Bitwise operation

Hello,

I was having a hard time finding the documentation for bitwise

operations on BasicX. In a C compiler for other mcu, I could use

operands like >> to do bit shifting. Is there something like that in

BasicX?

Thanks,

Patrick


Check out BitOps.bas in the files section of the group:
http://tech.groups.yahoo.com/group/basicx/files/Datasheets-Appnotes-
Examples-Drawings/Code%20Techniques/

Might be all you need.

--- In b..., "patratacus" wrote:
>
> Hello,
>
> I was having a hard time finding the documentation for bitwise
> operations on BasicX. In a C compiler for other mcu, I could use
> operands like >> to do bit shifting. Is there something like that in
> BasicX?
>
> Thanks,
> Patrick
>