From 2831b26d99ba7925a454a454ab520fa6b8a3712f Mon Sep 17 00:00:00 2001 From: lux Date: Sat, 19 Aug 2017 13:07:24 +0200 Subject: [PATCH] Simplify main-loop invariant. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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