diff --git a/src/cc65/optimize.c b/src/cc65/optimize.c index e24160658..4421a9bb6 100644 --- a/src/cc65/optimize.c +++ b/src/cc65/optimize.c @@ -3987,7 +3987,7 @@ static Line* OptOneBlock (Line* L) A = 7; X = 0; Y = 1; - } else if (LineFullMatch (L, "\tjsr\tpusha")) { + } else if (CPU == CPU_65C02 && LineFullMatch (L, "\tjsr\tpusha")) { /* We know about this function */ Y = 0; } else if (LineFullMatch (L, "\tjsr\tpusha0")) {