tx0.c: Modernized cpu core.  [Wilbert Pol]

Out of whatsnew:
Also copied over the support for octal in
debugger state from the alto2 branch.