]> git.sur5r.net Git - cc65/commitdiff
Remove bank.offs address spec
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 13 Nov 2003 22:02:45 +0000 (22:02 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 13 Nov 2003 22:02:45 +0000 (22:02 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2661 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/ea.c

index fbac2cfba55c74f5689de5c1fd4d000939ad3d58..e243a83f5da12902e9249e4f559474ca214c952f 100644 (file)
@@ -159,63 +159,42 @@ void GetEA (EffAddr* A)
        /* Remaining stuff:
         *
         * adr
-        * bank.adr
         * adr,x
-        * bank.adr,x
         * adr,y
         * adr,s
         */
                A->Expr = Expression ();
 
-               if (Tok == TOK_DOT) {
-
-                   /* Expr was a bank specification: bank.adr or bank.adr,x */
-                   A->Bank = A->Expr;
-                   NextTok ();
-                   A->Expr = Expression ();
-                   if (Tok == TOK_COMMA) {
-                       /* bank.adr,x */
-                       NextTok ();
-                       Consume (TOK_X, "`X' expected");
-                       A->AddrModeSet = AM_ABS_LONG_X;
-                   } else {
-                       /* bank.adr */
-                       A->AddrModeSet = AM_ABS_LONG;
-                   }
+        if (Tok == TOK_COMMA) {
 
-       } else {
-
-           if (Tok == TOK_COMMA) {
-
-               NextTok ();
-               switch (Tok) {
+            NextTok ();
+            switch (Tok) {
 
-                   case TOK_X:
-                               A->AddrModeSet = AM_ABS_LONG_X | AM_ABS_X | AM_DIR_X;
-                       NextTok ();
-                       break;
+                case TOK_X:
+                    A->AddrModeSet = AM_ABS_LONG_X | AM_ABS_X | AM_DIR_X;
+                    NextTok ();
+                    break;
 
-                   case TOK_Y:
-                       A->AddrModeSet = AM_ABS_Y | AM_DIR_Y;
-                       NextTok ();
-                       break;
+                case TOK_Y:
+                    A->AddrModeSet = AM_ABS_Y | AM_DIR_Y;
+                    NextTok ();
+                    break;
 
-                   case TOK_S:
-                       A->AddrModeSet = AM_STACK_REL;
-                       NextTok ();
-                       break;
+                case TOK_S:
+                    A->AddrModeSet = AM_STACK_REL;
+                    NextTok ();
+                    break;
 
-                   default:
-                       Error ("Syntax error");
+                default:
+                    Error ("Syntax error");
 
-               }
+            }
 
-           } else {
+        } else {
 
-               A->AddrModeSet = AM_ABS_LONG | AM_ABS | AM_DIR;
+            A->AddrModeSet = AM_ABS_LONG | AM_ABS | AM_DIR;
 
-           }
-       }
+        }
     }
 
     /* Apply addressing mode overrides */