From: cuz Date: Sat, 11 Oct 2003 20:38:55 +0000 (+0000) Subject: Use new CPU instruction sets table X-Git-Tag: V2.12.0~1263 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=72ce6ac23180111588671facf9a85cdce000233d;p=cc65 Use new CPU instruction sets table git-svn-id: svn://svn.cc65.org/cc65/trunk@2515 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/coptind.c b/src/cc65/coptind.c index eae7b705b..07f30df0a 100644 --- a/src/cc65/coptind.c +++ b/src/cc65/coptind.c @@ -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; }