From fbca225d25db812fe7823a8528dff17320cf1c53 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Fri, 7 Apr 2023 02:35:46 +1000 Subject: commit so I can access it tomorrow. --- assembler.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'assembler.c') diff --git a/assembler.c b/assembler.c index e302218..b20d13b 100644 --- a/assembler.c +++ b/assembler.c @@ -1,10 +1,10 @@ +// assembler.c +// A minimalistic assembler for creating binary files. + #include"stdio.h" //syscall library -//Will probably need to make a special case which will prevent EOF -//from being written. - int main(int argc; char* argv[]){ int output = 0; switch(argc){ @@ -27,13 +27,14 @@ int main(int argc; char* argv[]){ //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; - +*/ } -- cgit v1.2.3