From 229f3f89ed59d0a6adb6a8a2017be87c00442df2 Mon Sep 17 00:00:00 2001 From: ArthurFerreira2 Date: Sat, 9 Mar 2019 14:36:22 +0100 Subject: [PATCH] Update reinette.c --- reinette.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reinette.c b/reinette.c index 9eab0fc..abfacca 100644 --- a/reinette.c +++ b/reinette.c @@ -546,9 +546,9 @@ int main(int argc, char *argv[]) { // main loop while(1){ for (i=0; i<100; i++){ // executes 100 instructions before a kbd scan - opcode = readMem(reg.PC++); // fetch and increment the Program Counter - addressing[opcode](); // decode operands against the addressing mode - instruction[opcode](); // execute the instruction + opcode = readMem(reg.PC++); // FETCH and increment the Program Counter + addressing[opcode](); // DECODE operands against the addressing mode + instruction[opcode](); // EXEC the instruction } // keyboard controller