add getRegs() to cpu interface