#define al dpl
#define ah dph
-#ifdef SDCC_STACK_AUTO
+#if defined(SDCC_STACK_AUTO) && !defined(SDCC_PARMS_IN_BANK1)
ar0 = 0 ; BUG register set is not considered
ar1 = 1
#else // SDCC_STACK_AUTO
-#if defined(SDCC_NOOVERLAY) // BUG SDCC_NOOVERLAY is not set by -no-overlay
+#if !defined(SDCC_PARMS_IN_BANK1)
+#if defined(SDCC_NOOVERLAY)
.area DSEG (DATA)
#else
.area OSEG (OVR,DATA)
#define bl (__moduint_PARM_2)
#define bh (__moduint_PARM_2 + 1)
-
+#else
+ #define bl (b1_0)
+ #define bh (b1_1)
+#endif
#endif // SDCC_STACK_AUTO
mov a,bl ; avoid endless loop