Reorganised CPU interpreter.

Reorganised CPU interpreter.