Posted: Tue Jun 07, 2005 10:43 am Post subject: bit operators in bascom
hi,
i need to translate some code from C to Bascom and i don't know how to do it
this is a piece of this code:
variable_long = (variable_byte & 3) << 10;
variable_long |= (variable_byte <<2) & 3;
Dim Aux_long as long
variable_long = variable_long AND 3
SHIFT variable_long , left , 10
Aux_long = variable_long
SHIFT variable_long , left , 2
variable_long = variable_long AND 3
variable_long = variable_long OR Aux_long
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum