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: