Proof (regular language is computable)

Let $L\subseteq \mathbb{W}$ be a regular language and let $D = (Σ, Q, δ, q_0, F)$ be a deterministic automaton that accepts $L$. We will describe a register machine $\hat M = (Σ, \hat Q, P)$ that takes $w$ as an input in register 0, mimics the computation of $D$, and outputs $a$ if $w\in L$ and $ε$ if $w\not\in L$. For each state $q\in Q$ of the automaton, $M$ will have a subset $Q_q \subseteq \hat Q$ of states.

For each $q\in Q$, $Q_q$ performs the following operations: