diff --git a/src/main.c b/src/main.c index 2b5b427..649741e 100644 --- a/src/main.c +++ b/src/main.c @@ -26,7 +26,7 @@ int main(int argc, char *argv[]) //(-1 in case of error, //else number of correct read worts) - while(run && pc<(RAM_SIZE-1)) + while(run) { ir = ram[pc]; //get instruction from RAM op_code = get_opcode(ir); //determine the instruction form