ASM: fixed small bug in the assembler

This commit is contained in:
(Tim) Efthimis Kritikos 2024-02-17 20:54:39 +00:00
parent 184cba5adf
commit af71b6e75e

View File

@ -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