+2001-12-02 Bernhard Held <bernhard@bernhardheld.de>
+
+ * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
+
2001-11-25 Michael Hope <michaelh@juju.net.nz>
* support/regression/tests/bug-485362.c: Added.
emitcode ("add", "a,#0x%02x", ((char) sym->stack & 0xff));
emitcode ("mov", "sp,a");
+ }
+ else if (i > 5)
+ {
+
+ /* ISRs will be handled by the code above, because they
+ can't have parameters. Therefore it's save to use r0 */
+ emitcode ("mov", "r0,a");
+ emitcode ("mov", "a,sp");
+ emitcode ("add", "a,#0x%02x", ((char) sym->stack & 0xff));
+ emitcode ("mov", "sp,a");
+ emitcode ("mov", "a,r0");
+
}
else
while (i--)