summaryrefslogtreecommitdiff
path: root/interpreter.c
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-04-11 01:39:54 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-04-11 01:39:54 +1000
commit2cf25a4fb232939191147896366b0c68d09c985e (patch)
tree2075a71a91c1a8d0500bbb79c90ed215987846ee /interpreter.c
parenta4a9590148fdae2f656b25dd1d7b442969726c28 (diff)
WIP on instruction table
Diffstat (limited to 'interpreter.c')
-rw-r--r--interpreter.c3
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
}