1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-08 15:29:37 +00:00

Adjustment for '816

This commit is contained in:
Lauri Kasanen 2019-04-10 17:29:57 +03:00 committed by greg-king5
parent 3b3b16ee9c
commit 304473d857

View File

@ -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);