]> git.sur5r.net Git - cc65/commitdiff
Use new CPU instruction sets table
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 11 Oct 2003 20:38:55 +0000 (20:38 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 11 Oct 2003 20:38:55 +0000 (20:38 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2515 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/coptind.c

index eae7b705b055f7a9a2d29a77524973c144bb05ca..07f30df0a78ae2bc995e3b1cbe144a112d8f0cc6 100644 (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;
                     }