Hey just a quick question i need help with,

Find register machine programs that compute the unary(one-place) partial functions:

$\displaystyle f(x)=2x+2$

and

$\displaystyle f(x)= \left\{

\begin{array}{c 1}

0 & \mbox{if x is odd;}\\

\perp & \mbox{otherwise}

\end{array}

\right.

$

cheers.