+2003-08-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
+
+ * src/z80/gen.c (isUnsplitable, fetchPairLog): fixed bug #770454
+
2003-08-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
Made bitfield a distinct type from bit so that bitfields
return (getPairId (aop) != PAIR_INVALID);
}
+/** Returns TRUE if the registers used in aop cannot be split into high
+ and low halves */
+bool
+isUnsplitable (asmop * aop)
+{
+ switch (getPairId (aop))
+ {
+ case PAIR_IX:
+ case PAIR_IY:
+ return TRUE;
+ default:
+ return FALSE;
+ }
+ return FALSE;
+}
+
bool
isPtrPair (asmop * aop)
{
_pop (id);
}
}
+ else if (isUnsplitable(aop))
+ {
+ emit2("push %s", _pairs[getPairId(aop)].name);
+ emit2("pop %s", _pairs[pairId].name);
+ }
else
{
emit2 ("ld %s,%s", _pairs[pairId].l, aopGet (aop, offset, FALSE));