





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






while(1){ inst = mem[PC]; // fetch if(inst == add) { // decode // execute reg[inst.reg1] = reg[inst.reg2] + reg[inst.reg3]; PC++; } } // repeat
while(1){ inst = mem[PC]; // fetch if(inst == add) { // decode // execute reg[inst.reg1] = reg[inst.reg2] + reg[inst.reg3]; PC++; } } // repeat