X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2Fz80%2Fasexpr.c;h=f9bda739d79d6c9c3b0b41c1235225cbd78db8ae;hb=3bd25d75bcad68055bb616dcc29dde8a2965965e;hp=58fc0776e135567a185fe48a08cf6969d62df5ec;hpb=7ddac4cf56954cd0063d010df958b3e03f3fcdc7;p=fw%2Fsdcc diff --git a/as/z80/asexpr.c b/as/z80/asexpr.c index 58fc0776..f9bda739 100644 --- a/as/z80/asexpr.c +++ b/as/z80/asexpr.c @@ -1,13 +1,20 @@ -/* asexpr.c */ +/* asexpr.c -/* - * (C) Copyright 1989-1995 - * All Rights Reserved - * - * Alan R. Baldwin - * 721 Berkeley St. - * Kent, Ohio 44240 - */ + Copyright (C) 1989-1995 Alan R. Baldwin + 721 Berkeley St., Kent, Ohio 44240 + +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3, or (at your option) any +later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . */ #include #include @@ -454,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;