# HAL operand query

The unit at [hal/opq.fs] provides words to extract information from otherwise
opaque HAL operands.

## API

(W? ( op -- f )
  Yields whether "op"'s base register is W, regardless of its
  direct/displacement/invert flags. Because W is the top of stack, there's often
  special processing to do in that case.

(sz ( op -- n )
  Yields "op" width in bytes, that is, 4, 2 or 1.

(i? ( op -- ?n f )
  Yields whether "op" is an immediate one. If it is, also yield the associated
  immediate number.

hslot ( op -- slot )
  Yields the HAL bank slot number encoded in the op.
