ItemValue
NameBOOL (spec document BIND BOOL)
TAG ID0x060L
Codec ID0x00000600
Spec document0x00000000/codecs/0x00000600/ (DECLARE target 0600)
Section3 0011 (Value), offset C within the section = 0
KindValue · family: NUMERIC
TAG WORD0000 0110 0000 LLLL (000K KKKC CCCC LLLL)
Index descriptionfalse or true in a fixed 1 WORD
Hugo sidevalue/numeric/bool.md

Fields (spec document)

The order of FIELDs in the document is the order of the Payload fields (Codec spec document).

OrderField (BIND)FIELDWidthReceiving format (CODEC)ENUM
1code#2raw value, 1 WORD0x0000 false, 0x0001 true

BOOL is a Value that represents the logical values false and true. Its direct Value code is 0x060L, family NUMERIC. It is a different type from SIGNED-INTEGER and UNSIGNED-INTEGER, which hold the numbers 0 and 1.

Layout

TAG WORD          0x0601 (0000 0110 0000 0001)  total 2 WORD
Payload           1 WORD  Boolean Code

Interpretation and validity

  • Payload 0000 is false and 0001 is true.
  • There is no padding or descriptor.
  • The Payload is exactly 0000 or 0001. Any other 16-bit value is rejected as invalid.
  • Every other Length representation is rejected as invalid.

Length

  • The total is exactly 2 WORD, the TAG 1 WORD plus the Payload 1 WORD, and uses the direct length LLLL=0001. There is no Length extension TAG, descriptor, or padding.
  • If the Payload is not exactly 1 WORD, it is rejected.

Examples

Full record (TAG + Payload)PayloadVerdict
0601 00000000false, canonical
0601 00010001true, canonical
0601 00020002invalid
0601 FFFFFFFFinvalid
TAG with Length other than 0001 + 0000 or 00010000 or 0001invalid

Format status

  • This representation, which binds a 16-bit code word of 0000/0001 to a GEUL TAG, is a GEUL-specific scalar profile.
  • The logical value itself is universal, but no single industry standard is claimed to correspond to this 1 WORD representation.

Spec document source

This is the spec document 0x00000000/codecs/0x00000600/latest.geul as read with geul show (hexadecimal in uppercase).

SPEC-VERSION 0x0001
DOC-ID 0x0426000000000000060000000000
BODY
#1 DECLARE 0x0600
#2 FIELD #1 0x0001
#3 ENUM #2 0x0000
#4 ENUM #2 0x0001
#5 BIND #1 "BOOL"
#6 BIND #2 "code"
#7 BIND #3 "false"
#8 BIND #4 "true"