UP

If “N” is a node key and 0 ≤ n ≤ 15 then
N(NODE__FETCH{=0}+n;==>;K) copies the key in slot n of node N to K.

N(NODE__SWAP{=16}+n;K==>;L) copies K to slot n of N and returns in L the old contents of slot n.

N(NODE__WRITE_DATA{=45}, (4,fx), (4,lx), data; ==> c;) stores data keys into the node.

N(NODE__MAKE_type_KEY,((1,b1));==>;K) puts in K a key of the designated type, where type is FETCH, SEGMENT, METER, or NODE. K designates the same node as N. b1 is placed in the databyte of the new key unless type is METER, in which case b1 is ignored.

If K is a node key, fetch key, sense key, segment key or meter key to N’s node, then N(NODE__COMPARE{=38};K==>c;) returns 0 in c, and 1 otherwise.

N(NODE__CLEAR{=39};==>;) clears the node to empty keys. (Equivalent to N(NODE__WRITE_DATA, (4, 1), (260, 0);==>;).)

N(NODE__DATA_BYTE{=40};==>c;) returns the databyte of N in c.

N(kt;==>c;) returns 3 in c.

These values without the underscores are in the macro NODEDEFS in the library DOMAIN. NODE__FETCH=0, NODE__SWAP=16,
NODE__MAKE_FETCH_KEY=32, NODE__MAKE_SEGMENT_KEY=33, NODE__MAKE_METER_KEY=34, NODE__MAKE_NODE_KEY=35, NODE__COMPARE=38, NODE__CLEAR=39, NODE__DATA_BYTE=40, NODE__WRITE_DATA=45.

Design Note: