]> git.sur5r.net Git - cc65/commitdiff
Change result of .CPU pseudo variable
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 10 Oct 2003 17:38:06 +0000 (17:38 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 10 Oct 2003 17:38:06 +0000 (17:38 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2505 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/expr.c

index 7b352e3347640ba819b661cbb5aa35809b3816a7..616564b16a25798fa5fc1faade4689c836d0def4 100644 (file)
@@ -38,6 +38,7 @@
 
 /* common */
 #include "check.h"
+#include "cpu.h"
 #include "exprdefs.h"
 #include "print.h"
 #include "tgttrans.h"
@@ -634,7 +635,7 @@ static ExprNode* Factor (void)
            break;
 
        case TOK_CPU:
-           N = GenLiteralExpr (GetCPU());
+           N = GenLiteralExpr (CPUIsets[CPU]);
            NextTok ();
            break;