1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00

Use a new specialized multiply routines

git-svn-id: svn://svn.cc65.org/cc65/trunk@1194 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-03-16 20:28:06 +00:00
parent 854f23e945
commit 6628389d85

View 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;