From c51a706830b2fe433c2b87ab2f7a52277a5101e9 Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 29 Jul 2001 09:07:43 +0000 Subject: [PATCH] Simplify code generation git-svn-id: svn://svn.cc65.org/cc65/trunk@827 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/codegen.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) 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: -- 2.39.5