Files
open-roms/src/basic/basic_commands_04/cmd__jumptable_04.s
T

37 lines
569 B
ArmAsm

;; #LAYOUT# M65 BASIC_0 #TAKE
;; #LAYOUT# * * #IGNORE
;
; Jumptable for BASIC commands with tokens prefixed by $04
;
!set ITEM_01 = cmd_sysinfo
!set ITEM_02 = cmd_joycrsr
!set ITEM_03 = cmd_monitor
!ifndef HAS_OPCODES_65C02 {
command_04_jumptable_lo:
!byte <(ITEM_01-1)
!byte <(ITEM_02-1)
!byte <(ITEM_03-1)
command_04_jumptable_hi:
!byte >(ITEM_01-1)
!byte >(ITEM_02-1)
!byte >(ITEM_03-1)
} else { ; HAS_OPCODES_65C02
command_04_jumptable:
; Note: 65C02 has the page boundary vector bug fixed!
!word ITEM_01
!word ITEM_02
!word ITEM_03
}