Fixed failure to assemble immediates equal to Zero

This commit is contained in:
Jeremiah Orians 2016-06-06 19:58:41 -04:00
parent 2bb7ba3038
commit 89b42ef066
No known key found for this signature in database
GPG Key ID: 7457821534D2ACCD
1 changed files with 3 additions and 3 deletions

2
asm.c
View File

@ -388,7 +388,7 @@ void eval_immediates(struct Token* p)
uint16_t value;
value = numerate_string(p->Text);
if(0 != value)
if(('0' == p->Text[0]) || (0 != value))
{
sprintf(p->Expression, "%04x", value);
}