From 5fc87be2cf485b7788082931e2c7b1d92c7d6dc6 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Fri, 4 Dec 2020 15:36:16 +0100 Subject: [PATCH] fixed jumptable in BASIC --- src/basic/basic_commands_04/cmd__jumptable_04.s | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/basic/basic_commands_04/cmd__jumptable_04.s b/src/basic/basic_commands_04/cmd__jumptable_04.s index 4b623071..642fc7d8 100644 --- a/src/basic/basic_commands_04/cmd__jumptable_04.s +++ b/src/basic/basic_commands_04/cmd__jumptable_04.s @@ -1,4 +1,4 @@ -;; #LAYOUT# M65 * #TAKE +;; #LAYOUT# M65 BASIC_0 #TAKE ;; #LAYOUT# * * #IGNORE ; @@ -6,7 +6,7 @@ ; !set ITEM_01 = cmd_sysinfo - +!set ITEM_02 = cmd_joycrsr !ifndef HAS_OPCODES_65C02 { @@ -14,10 +14,13 @@ command_04_jumptable_lo: !byte <(ITEM_01-1) + !byte <(ITEM_02-1) command_04_jumptable_hi: !byte >(ITEM_01-1) + !byte >(ITEM_02-1) + } else { ; HAS_OPCODES_65C02 @@ -26,4 +29,5 @@ command_04_jumptable: ; Note: 65C02 has the page boundary vector bug fixed! !word ITEM_01 + !word ITEM_02 }