From 72ce6ac23180111588671facf9a85cdce000233d Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 11 Oct 2003 20:38:55 +0000 Subject: [PATCH] Use new CPU instruction sets table git-svn-id: svn://svn.cc65.org/cc65/trunk@2515 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/coptind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }