SHLB(variable) NEW! (V2.0)
Shift left <variable> one bit position, introducing 0 to the LSB and returns a BOOLEAN that was the MSB value.
Restrictions:
<variable> may be any variable of type CHAR, BYTE, WORD, LONGWORD, SHORTINT, INTEGER, LONGINT, or an ARRAY of these types, or an ARRAY of BOOLEAN; in this last case, the number of elements must be multiple of 8.
<variable> cannot be a pointer or a RECORD field, nor located in EEPROM.
VAR
TheBit: BOOLEAN;
TheBuf: ARRAY[1..5] OF BYTE;
…
// Shift out the buffer to the left
TheBit := SHLB(TheBuff);
…