]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 11 Sep 2003 09:36:16 +0000 (09:36 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 11 Sep 2003 09:36:16 +0000 (09:36 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2431 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/asmstmt.c

index 0644e802980e5dde69f9c4f72e1b9e54755de81d..7552ede480db3f89c63c045db0281f5e6149420c 100644 (file)
@@ -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];