I don't have time to check now, but wonder if that addw sp, #12 should have been addw sp, #14 instead
No, 12 should be fine fine: 4 for x and y each, 2 for z, 2 for the return address.
_______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user