From 2cf25a4fb232939191147896366b0c68d09c985e Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Tue, 11 Apr 2023 01:39:54 +1000 Subject: WIP on instruction table --- interpreter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'interpreter.c') 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 } -- cgit v1.2.3