projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed bug 1909409: Pdata in OMF file
[fw/sdcc]
/
as
/
xa51
/
xa_rasm.l
diff --git
a/as/xa51/xa_rasm.l
b/as/xa51/xa_rasm.l
old mode 100755
(executable)
new mode 100644
(file)
index
3f35c18
..
8576b73
--- a/
as/xa51/xa_rasm.l
+++ b/
as/xa51/xa_rasm.l
@@
-247,6
+247,14
@@
R[0-7]H {LIST; yylval = (yytext[1] - '0') * 2 + 1 + BYTE_REG; return REG;}
if (is_bit(lex_sym_name)) return BIT;
if (is_reg(lex_sym_name)) return REG;
}
+ if (p3) {
+ if (*operand[0]) {
+ // first one in use
+ strcpy (operand[1], yytext);
+ } else {
+ strcpy (operand[0], yytext);
+ }
+ }
return WORD;
}
[0-9]+\$ {