From f3b639f8352b24c5733261b6c74da4b3b9518d76 Mon Sep 17 00:00:00 2001 From: uz Date: Wed, 19 Aug 2009 10:17:10 +0000 Subject: [PATCH] Generate more predictable code. git-svn-id: svn://svn.cc65.org/cc65/trunk@4039 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.39.5