From: cuz Date: Sat, 16 Mar 2002 20:28:06 +0000 (+0000) Subject: Use a new specialized multiply routines X-Git-Tag: V2.12.0~2422 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6628389d8564506a9b9d8af679083f132d237c64;p=cc65 Use a new specialized multiply routines git-svn-id: svn://svn.cc65.org/cc65/trunk@1194 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/codegen.c b/src/cc65/codegen.c index c31009f5c..029525a94 100644 --- a/src/cc65/codegen.c +++ b/src/cc65/codegen.c @@ -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;