diff options
author | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-27 11:19:33 +1000 |
---|---|---|
committer | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-27 11:19:33 +1000 |
commit | f86d973b2f5318b5e761e2f682c2aa57d61eb0d6 (patch) | |
tree | 1563496942ab0b09ed0ee1e2b549ce78a991ebef /assembler.c | |
parent | 83e8a4494741e6257b18267a58fe8ae342e3229f (diff) |
Major progress on interpreter
Diffstat (limited to 'assembler.c')
-rw-r--r-- | assembler.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/assembler.c b/assembler.c deleted file mode 100644 index 1797d9b..0000000 --- a/assembler.c +++ /dev/null @@ -1,40 +0,0 @@ -// assembler.c -// A minimalistic assembler for creating binary files. - -#include"stdio.h" - -int main(int argc; char* argv[]){ - int output = 0; - switch(argc){ - case 0: // Arguments are required - printf("%s: Input file not given.\n", argv[0]); - return -1; - case 1: // Input file - break; - case 2: // Input and Output file - output = 1; - break; - default: - printf("%s: Too many arguments.\n", argv[0]); - break; - } - - //test file existence - - -//call open file - -// DRAFTING PROG LOGIC -/* -char c = 0; -char in[10]; -while((c != '\n') && (c != EOF) -c = getchar; -if(c == '#') c = '\n'; -in[i] = c; -*/ - -} - - - |