Bits and Byte Operators and Keywords

Action Keywords GB VB6
Change and test bits of 32-bits integers Bchg, Bclr, Bset, Btst v  
Change and test bits of 64-bit integers Bchg8, Bclr8, Bset8, Btst8 v  
Shift bits (32-bits) <<, >>

Shl, Shr, Sar

v  
Rotate bits (32-bits) Rol, Ror v  
Shift bits (64-bits) Shl8, Shr8, Sar8 v  
Rotate bits (64-bits) Rol8, Ror8 v  
Swap bytes Bswap v  
Exchange bytes _Swab, _Swab8, _SwabL v  
Swap bits Mirror, Mirror%, Mirror&, Mirror|, Mirror8 v  
Extract high and low bytes and words HiByte, HiCard, HiWord, LoByte, LoCard,LoWord, LoLarge,HiLarge v  
Extract Card and Byte type Card,Byte v  
Sign extend Word, Short, Ushort, Uword v  
Create integers (16-bit, 24-bit, 32-bit, and 64-bit) MakeL2H, MakeL2L, MakeL3H, MakeL3L, MakeL4H, MakeL4L, MakeLarge, MakeLargeHiLo, MakeLargeLoHi, MakeLong, MakeLongHiLo, MakeLongLoHi, MakeWord, MakeWordHiLo, MakeWordLoHi, MakeWParam v  
Peek numeric values Peek, CPeek, CurPeek, DPeek, DblPeek, LPeek, Peek8, SngPeek v  
Poke numeric values Poke, CPoke, CurPoke, DPoke, DblPoke, LPoke, Poke8, SngPoke v  
Network integer conversions htonl(), htons(), ntohl(), ntohs() v  

See Also

Bits, Byte, Word, Int, and Large Operators and Keywords

Conversion Keywords

Data Types Keywords

Memory Keywords

Miscellaneous Keywords

Operators Keywords

String Manipulation Keywords

Variables and Constants Keywords

{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}