Merge pull request #200 from qwordAtGitHub/issue152and156

Fix for issue 152 and 156
This commit is contained in:
Ilya V. Matveychikov 2016-05-07 12:00:31 +03:00
commit 644f39971f
2 changed files with 2 additions and 1 deletions

View File

@ -317,6 +317,7 @@ struct asym *CreateVariable( const char *name, int value )
//sym->mem_type = MT_ABS;
sym->variable = TRUE;
sym->value = value;
sym->value3264 = 0;
sym->isequate = TRUE;
return( sym );
}

View File

@ -1488,7 +1488,7 @@ static ret_code highword_op( int oper, struct expr *opnd1, struct expr *opnd2, s
//opnd1->mem_type = MT_WORD; /* v2.05 */
opnd1->mem_type = MT_EMPTY;
}
opnd1->value = opnd1->value >> 16;
opnd1->llvalue = (opnd1->value >> 16) & 0xffff;
return( NOT_ERROR );
}