Allow external get/set of SP, BP, and IP registers
Extract `cpulib` module from CpuState