From 6628389d8564506a9b9d8af679083f132d237c64 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 16 Mar 2002 20:28:06 +0000 Subject: [PATCH] Use a new specialized multiply routines git-svn-id: svn://svn.cc65.org/cc65/trunk@1194 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/codegen.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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; -- 2.39.5