OpenBoot 3.x Command Reference Manual

64-Bit Data Type Conversion Functions

Table I-13 64-Bit Data Type Conversion Functions

Command 

Stack Diagram 

Description 

bxjoin

( b.lo b.2 b.3 b.4 b.5 b.6 b.7 b.hi -- o ) 

Join 8 bytes to form an octlet. 

lxjoin

( quad.lo quad.hi -- o ) 

Join 2 quadlets to form an octlet. 

wxjoin

( w.lo w.2 w.3 w.hi -- o ) 

Join four doublets to form an octlet. 

xbflip

( oct1 -- oct2 ) 

Reverse the bytes within an octlet. 

xbflips

( oaddr len -- ) 

Reverse the bytes within each octlet in the given region.The behavior is undefined if len is not a multiple of /x.

xbsplit

( o -- b.lo b.2 b.3 b.4 b.5 b.6 b.7 b.hi ) 

Split an octlet into 8 bytes. 

xlflip

( oct1 -- oct2 ) 

Reverse the quadlets within an octlet. The bytes within each quadlet are not reversed. 

xlflips

( oaddr len -- ) 

Reverse the quadlets within each octlet in the given region. The bytes within each quadlet are not reversed. The behavior is undefined if len is not a multiple of /x.

xlsplit

( o -- quad.lo quad.hi ) 

Split on octlet into 2 quadlets. 

xwflip

( oct1 -- oct2 ) 

Reverse the doublets within an octlet. The bytes within each doublet are not reversed. 

xwflips

( oaddr len -- ) 

Reverse the doublets within each octlet in the given region. The bytes within each doublet are not reversed. The behavior is undefined if len is not a multiple of /x.

xwsplit

( o -- w.lo w.2 w.3 w.hi ) 

Split an octlet into 4 doublets.