diff options
Diffstat (limited to 'interpreter.c')
-rw-r--r-- | interpreter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/interpreter.c b/interpreter.c index ee30258..a3275f3 100644 --- a/interpreter.c +++ b/interpreter.c @@ -19,7 +19,7 @@ int main(){ c = getchar(); // Exit condition - if ( (c == 'X') || (c == 'x') ) break; + if ( (c == 'X') || (c == 'x') || (c == EOF) ) break; if (dChar2Num(c) == -1){ // Debug print conditions @@ -36,6 +36,7 @@ int main(){ } }else{ // Run Instruction + byte inst = c } |