CPU simulator outline: done