From: Lauri Kasanen Date: Wed, 10 Apr 2019 14:29:57 +0000 (+0300) Subject: Adjustment for '816 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=304473d8579f1a266c76c90c2c4da59fcc219281;p=cc65 Adjustment for '816 --- diff --git a/src/cc65/goto.c b/src/cc65/goto.c index ae509e643..1b99a9803 100644 --- a/src/cc65/goto.c +++ b/src/cc65/goto.c @@ -103,7 +103,7 @@ void GotoStatement (void) if (CPUIsets[CPU] & CPU_ISET_65SC02) { AddCodeLine ("ldx #$%02X", val * 2); - AddCodeLine ("jmp (%s,x)", arr->AsmName); + AddCodeLine ("jmp (.loword(%s),x)", arr->AsmName); } else { AddCodeLine ("ldy #$%02X", val * 2); AddCodeLine ("lda %s,y", arr->AsmName); @@ -118,7 +118,7 @@ void GotoStatement (void) if (CPUIsets[CPU] & CPU_ISET_65SC02) { AddCodeLine ("tax"); - AddCodeLine ("jmp (%s,x)", arr->AsmName); + AddCodeLine ("jmp (.loword(%s),x)", arr->AsmName); } else { AddCodeLine ("tay"); AddCodeLine ("lda %s,y", arr->AsmName);