Bloomberg Interview Question

Write a CPU emulator with a limited instruction set. Think of the debugger implementation.