CPP CPU simulator for my compilers course