]> git.sur5r.net Git - cc65/commitdiff
"S" is a keyword in 65816 mode only.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 6 Mar 2009 09:56:22 +0000 (09:56 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 6 Mar 2009 09:56:22 +0000 (09:56 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3958 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/scanner.c

index 9649f4ed3e83254bd8104456abe8186f2ad8bfb9..e05dd8b6716dc5f31a4f60f3d6ccc67b0f918635 100644 (file)
@@ -680,7 +680,7 @@ static unsigned char FindDotKeyword (void)
 }
 
 
-
+           
 static void ReadIdent (void)
 /* Read an identifier from the current input position into Ident. Filling SVal
  * starts at the current position with the next character in C. It is assumed
@@ -1013,8 +1013,11 @@ Again:
                    break;
 
                case 'S':
-                   Tok = TOK_S;
-                   return;
+                    if (CPU == CPU_65816) {
+                        Tok = TOK_S;
+                        return;
+                    }
+                    break;
 
                case 'X':
                    Tok = TOK_X;