Working on the optimizations

git-svn-id: svn://svn.cc65.org/cc65/trunk@1069 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2001-10-21 13:53:20 +00:00
parent d0265989bc
commit 3c90e33414
12 changed files with 543 additions and 280 deletions

View File

@@ -742,16 +742,8 @@ void g_getlocal (unsigned flags, int offs)
AddCodeLine ("dey");
AddCodeLine ("ora (sp),y");
} else {
if (CodeSizeFactor > 180) {
ldyconst (offs + 1);
AddCodeLine ("lda (sp),y");
AddCodeLine ("tax");
AddCodeLine ("dey");
AddCodeLine ("lda (sp),y");
} else {
ldyconst (offs+1);
AddCodeLine ("jsr ldaxysp");
}
ldyconst (offs+1);
AddCodeLine ("jsr ldaxysp");
}
break;