Skip to content

TCardinalHelper.Nibbles

Read or write a nibble.

Declaration

Source position: syshelph.inc line 1130

public property Nibbles[aIndex : TCardinalNibbleIndex = TDwordNibbleIndex]: nibble;

Description

Nibbles property reads or writes nibble value to a nibble number determined by argument aIndex.

MyCardinal.Clear;   // %00000000000000000000000000000000 MyCardinal equals 0
MyCardinal.Nibbles[1] := 3; // %00000000000000000000000000110000 MyCardinal equals 48
WriteLn(MyCardinal.Nibbles[1]); // 3

See also

Name Description
TCardinalHelper.Bits Read or write a bit.
TCardinalHelper.Bytes Read or write a byte.
TCardinalHelper.Words Read or write a word.