ASM: Fixed length checking bug in assembler labels
This commit is contained in:
parent
d048b080b8
commit
39af6ec292
@ -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;
|
struct label_ll_t *search=assembler_context->label_ll;
|
||||||
while(search){
|
while(search){
|
||||||
if(strncmp(str,search->name,len)==0){
|
if(strncmp(str,search->name,len)==0&&search->name[len]==0){
|
||||||
if(select==1)
|
if(select==1)
|
||||||
imm_ret->value=search->address>>16;
|
imm_ret->value=search->address>>16;
|
||||||
else if(select==2)
|
else if(select==2)
|
||||||
|
Loading…
Reference in New Issue
Block a user