projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* as/z80/asexpr.c: fixed bug #1829678: Z-80 CP A,<xxx> assembly
[fw/sdcc]
/
as
/
z80
/
asexpr.c
diff --git
a/as/z80/asexpr.c
b/as/z80/asexpr.c
index 6d9211c3163817a03d7cd5055df30f0ece1486f8..f9bda739d79d6c9c3b0b41c1235225cbd78db8ae 100644
(file)
--- a/
as/z80/asexpr.c
+++ b/
as/z80/asexpr.c
@@
-461,6
+461,7
@@
register struct expr *esp;
getid(id, c);
sp = lookup(id);
if (sp->s_type == S_NEW) {
+ esp->e_addr = 0;
if (sp->s_flag&S_GBL) {
esp->e_flag = 1;
esp->e_base.e_sp = sp;