126 of 323
ZBasic System Library 116 ZX Microcontroller Family GetNibble Type Function returning Nibble Invocation GetNibble(var, nibbleNumber) Parameter Method Type Description var ByRef any type The variable from which the nibble will be read. nibbleNumber ByVal int8/16 The nibble number to read. Discussion This function extracts a nibble value from memory beginning at the location of the specified variable. Nibble numbers 0-1 are taken from the byte at the specified location, nibble numbers 2-3 are taken from the subsequent byte, etc. In each case, the lower nibble number corresponds to the least significant four bits of the byte while the higher nibble number corresponds to the most significant four bits of the byte. The return value will always be in the range 0 to 15. Compatibility This function is not available in BasicX compatibility mode. See Also PutNibble