diff --git a/src/cc65/codegen.c b/src/cc65/codegen.c index 2500f27ee..6527e76d1 100644 --- a/src/cc65/codegen.c +++ b/src/cc65/codegen.c @@ -945,8 +945,8 @@ void g_leasp (int offs) AddCodeLine ("inx"); } else { ldaconst (offs); - AddCodeLine ("clc"); AddCodeLine ("ldx sp+1"); + AddCodeLine ("clc"); AddCodeLine ("adc sp"); AddCodeLine ("bcc %s", LocalLabelName (L)); AddCodeLine ("inx");