]> git.sur5r.net Git - cc65/commitdiff
Simplify code generation
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 29 Jul 2001 09:07:43 +0000 (09:07 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 29 Jul 2001 09:07:43 +0000 (09:07 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@827 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/codegen.c

index 245a56b8e41ba14992a407bf467dcbded3092e40..c1c52e2d68dfb00dc389c9ffea0539649c22f0c2 100644 (file)
@@ -1111,21 +1111,13 @@ void g_putind (unsigned Flags, unsigned Offs)
            break;
 
        case CF_INT:
-           if (Offs) {
-               ldyconst (Offs);
-               AddCodeLine ("jsr staxspidx");
-           } else {
-               AddCodeLine ("jsr staxspp");
-           }
+           ldyconst (Offs);
+           AddCodeLine ("jsr staxspidx");
            break;
 
        case CF_LONG:
-           if (Offs) {
-               ldyconst (Offs);
-               AddCodeLine ("jsr steaxspidx");
-           } else {
-               AddCodeLine ("jsr steaxspp");
-           }
+           ldyconst (Offs);
+           AddCodeLine ("jsr steaxspidx");
            break;
 
        default: