Simplify main-loop invariant.
This commit is contained in:
parent
64dfa8abbd
commit
2831b26d99
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user