OS Task 2: emulation of the processor