From: cuz Date: Thu, 11 Sep 2003 09:36:16 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~1338 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=08349112f75dbc1d3e70eae5d0975870276fdd10;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@2431 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/asmstmt.c b/src/cc65/asmstmt.c index 0644e8029..7552ede48 100644 --- a/src/cc65/asmstmt.c +++ b/src/cc65/asmstmt.c @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 2001 Ullrich von Bassewitz */ +/* (C) 2001-2003 Ullrich von Bassewitz */ /* Wacholderweg 14 */ /* D-70597 Stuttgart */ /* EMail: uz@musoftware.de */ @@ -227,6 +227,10 @@ static void ParseGVarArg (StrBuf* T, unsigned Arg) /* ### FIXME: Asm name should be generated by codegen */ SB_AppendChar (T, '_'); SB_AppendStr (T, Sym->Name); + } else if (Sym->Flags & SC_REGISTER) { + char Buf[32]; + xsprintf (Buf, sizeof (Buf), "regbank+%d", Sym->V.R.RegOffs); + SB_AppendStr (T, Buf); } else { /* Static variable */ char Buf [16];