Simplify main-loop invariant.

This commit is contained in:
lux 2017-08-19 13:07:24 +02:00
parent 64dfa8abbd
commit 2831b26d99

View File

@ -26,7 +26,7 @@ int main(int argc, char *argv[])
//(-1 in case of error, //(-1 in case of error,
//else number of correct read worts) //else number of correct read worts)
while(run && pc<(RAM_SIZE-1)) while(run)
{ {
ir = ram[pc]; //get instruction from RAM ir = ram[pc]; //get instruction from RAM
op_code = get_opcode(ir); //determine the instruction form op_code = get_opcode(ir); //determine the instruction form