From: cuz Date: Sun, 29 Jul 2001 09:07:43 +0000 (+0000) Subject: Simplify code generation X-Git-Tag: V2.12.0~2749 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c51a706830b2fe433c2b87ab2f7a52277a5101e9;p=cc65 Simplify code generation git-svn-id: svn://svn.cc65.org/cc65/trunk@827 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/codegen.c b/src/cc65/codegen.c index 245a56b8e..c1c52e2d6 100644 --- a/src/cc65/codegen.c +++ b/src/cc65/codegen.c @@ -1111,21 +1111,13 @@ void g_putind (unsigned Flags, unsigned Offs) break; case CF_INT: - if (Offs) { - ldyconst (Offs); - AddCodeLine ("jsr staxspidx"); - } else { - AddCodeLine ("jsr staxspp"); - } + ldyconst (Offs); + AddCodeLine ("jsr staxspidx"); break; case CF_LONG: - if (Offs) { - ldyconst (Offs); - AddCodeLine ("jsr steaxspidx"); - } else { - AddCodeLine ("jsr steaxspp"); - } + ldyconst (Offs); + AddCodeLine ("jsr steaxspidx"); break; default: