def bits8
import bend-osdev-bytes@0.1.1.0/bytes.bend as Bytesimport Base
import bend-osdev-word64@0.1.1.0/word64.bend as W
16# the low 8 bits of a word, as bits
17def bits8(b: U32) -> Word(8n):
18 match b:
19 case U32{w}:
20 W.W64.bits.lo(8n, 24n, w)