From af71b6e75e4a5429227337bbd96dd5a57022ac4a Mon Sep 17 00:00:00 2001 From: "(Tim) Efthimis Kritikos" Date: Sat, 17 Feb 2024 20:54:39 +0000 Subject: [PATCH] ASM: fixed small bug in the assembler --- assembly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assembly.c b/assembly.c index c852dcc..09b84d9 100644 --- a/assembly.c +++ b/assembly.c @@ -359,7 +359,7 @@ struct imm_ret_t *parse_immediate(char* str,struct assembler_context_t *assemble int64_t assemble_line(char *line, struct assembler_context_t *assembler_context){ uint16_t opcode; int x=0; - int call; + int call=1; while(line[x]==' ')x++; if(line[x]==0||line[x]=='#') return -1;//empty line or comment