# ARCH probing

The unit at [lib/arch.fs] provides convenient words around the ARCH constant
described in [doc/kernel].

### Constants

FAMILY_none   $00
FAMILY_x86    $10
FAMILY_arm    $20
FAMILY_riscv  $30
FAMILY_amd64  $40

### Words

instrfamily? ( id -- f )
  Takes a FAMILY_* constant and yields whether we're running on that.

instrset ( -- n )
  Yields the "Instruction set" part of ARCH.

machineoptions ( -- n )
  Yields the "Machine option" part, shifted right, of ARCH.

familyname ( -- str )
  Yields a string corresponding with ARCH's family. Possible values:

    none i386 arm
