From 08349112f75dbc1d3e70eae5d0975870276fdd10 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 11 Sep 2003 09:36:16 +0000 Subject: [PATCH] Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@2431 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/asmstmt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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]; -- 2.39.5