1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-03 06:29:36 +00:00

Use new CPU instruction sets table

git-svn-id: svn://svn.cc65.org/cc65/trunk@2515 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-10-11 20:38:55 +00:00
parent 9de4932f23
commit 72ce6ac231

View File

@ -942,7 +942,7 @@ unsigned OptDupLoads (CodeSeg* S)
* location does already contain the value to be stored,
* remove the store.
*/
if (CPU >= CPU_65C02 && E->AM == AM65_ZP) {
if ((CPUIsets[CPU] & CPU_ISET_65SC02) != 0 && E->AM == AM65_ZP) {
if (ZPRegVal (E->Chg, In) == 0) {
Delete = 1;
}