Hello,

In line 3641 - 2660, sdcc/src/stm8/gen.c

  if (!regDead (X_IDX, ic))
    {
      if (regDead (XH_IDX, ic))
        {
          adjustStack (1, FALSE, FALSE, FALSE);
          swap_to_a (XL_IDX);
          pop (ASMOP_A, 0, 1);
          swap_from_a(XL_IDX);
        }
      else if (regDead (XL_IDX, ic))
        {
          swap_to_a (XH_IDX);
          pop (ASMOP_A, 0, 1);
          swap_from_a(XH_IDX);
          adjustStack (1, FALSE, FALSE, FALSE);
        }
      pop (ASMOP_X, 0, 2);
    }


should the two pops there be two pushes ? Or change adjustStack(1, ...) to adjustStack(-1, ...) ?

Ben