+2009-02-27 Borut Razem <borut.razem AT siol.net>
+
+ * as/z80/asexpr.c, as/z80/z80mch.c: re-fixed bugs
+ #1829678 and #1704376 in the way proposed by Alan Baldwin
+
2009-02-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
* device/include/mcs51/at89c51ed2.h: Fixed address of SFR P5. Thanks
getid(id, c);
sp = lookup(id);
if (sp->s_type == S_NEW) {
- esp->e_addr = 0;
if (sp->s_flag&S_GBL) {
esp->e_flag = 1;
esp->e_base.e_sp = sp;
if ((t2 != S_R8) || (e2.e_addr != A))
++t1;
comma();
+ clrexpr(&e2);
t2 = addr(&e2);
}
if (genop(0xCB, op, &e2, 0) || t1)
if ((t2 != S_R8) || (e2.e_addr != A))
++t1;
comma();
+ clrexpr(&e2);
t2 = addr(&e2);
}
if (genop(0, op, &e2, 1) || t1)
case S_DJNZ:
case S_JR:
if ((v1 = admode(CND)) != 0 && rf != S_DJNZ) {
- if ((v1 &= 0xFF) <= 0x18 && v1 != PO && v1 != PE && v1 != P && v1 != M) {
+ if ((v1 &= 0xFF) <= 0x03) {
op += (v1+1)<<3;
} else {
aerr();