]> git.sur5r.net Git - cc65/commitdiff
Use a new specialized multiply routines
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 16 Mar 2002 20:28:06 +0000 (20:28 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 16 Mar 2002 20:28:06 +0000 (20:28 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1194 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/codegen.c

index c31009f5cf160273c1f2132e8a7f6d99f35eae62..029525a9433bae6bf75ea2ff2876d839a2515459 100644 (file)
@@ -2475,6 +2475,14 @@ void g_mul (unsigned flags, unsigned long val)
                            AddCodeLine ("adc tmp1");
                            return;
 
+                       case 6:
+                           AddCodeLine ("sta tmp1");
+                           AddCodeLine ("asl a");
+                           AddCodeLine ("clc");
+                           AddCodeLine ("adc tmp1");
+                           AddCodeLine ("asl a");
+                           return;
+
                        case 10:
                            AddCodeLine ("sta tmp1");
                            AddCodeLine ("asl a");
@@ -2495,6 +2503,15 @@ void g_mul (unsigned flags, unsigned long val)
                    case 5:
                        AddCodeLine ("jsr mulax5");
                        return;
+                   case 6:
+                       AddCodeLine ("jsr mulax6");
+                       return;
+                   case 7:
+                       AddCodeLine ("jsr mulax7");
+                       return;
+                   case 9:
+                       AddCodeLine ("jsr mulax9");
+                       return;
                    case 10:
                        AddCodeLine ("jsr mulax10");
                        return;