From 304473d8579f1a266c76c90c2c4da59fcc219281 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Wed, 10 Apr 2019 17:29:57 +0300 Subject: [PATCH] Adjustment for '816 --- src/cc65/goto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5