diff --git a/assembly.c b/assembly.c index 0f237eb..5f81751 100644 --- a/assembly.c +++ b/assembly.c @@ -356,7 +356,7 @@ struct imm_ret_t *parse_immediate(char* str,struct assembler_context_t *assemble struct label_ll_t *search=assembler_context->label_ll; while(search){ - if(strncmp(str,search->name,len)==0){ + if(strncmp(str,search->name,len)==0&&search->name[len]==0){ if(select==1) imm_ret->value=search->address>>16; else if(select==2)