From 911b0a43d8f605c81df0b1c0591299bac06bce5a Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 17 Mar 1995 12:32:47 +0000 Subject: [PATCH] Fix: never replace LAR/SAR by AAR LOI/STI if descriptor is not in ROM --- util/ego/cs/cs_profit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/util/ego/cs/cs_profit.c b/util/ego/cs/cs_profit.c index a7d0a9698..67eb713ed 100644 --- a/util/ego/cs/cs_profit.c +++ b/util/ego/cs/cs_profit.c @@ -184,9 +184,10 @@ STATIC bool okay_lines(avp, ocp) * as an AAR LOI/STI. This depends on the size of the array-elements. */ if (INSTR(ocp->oc_llast) == op_lar || INSTR(ocp->oc_llast) == op_sar) { + sz = array_elemsize(avp->av_othird); + if (sz == UNKNOWN_SIZE) return FALSE; if (avp->av_instr == (byte) op_aar && time_space_ratio < 50) { - return (sz = array_elemsize(avp->av_othird)) <= AR_limit && - sz != UNKNOWN_SIZE; + return sz <= AR_limit; } } return TRUE; -- 2.34.1