From: uz Date: Wed, 19 Aug 2009 10:17:10 +0000 (+0000) Subject: Generate more predictable code. X-Git-Tag: V2.13.0rc1~216 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f3b639f8352b24c5733261b6c74da4b3b9518d76;p=cc65 Generate more predictable code. git-svn-id: svn://svn.cc65.org/cc65/trunk@4039 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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");