4sports/src/hw.accel.lc2.a

18 lines
605 B
Plaintext
Raw Permalink Normal View History

2021-02-16 06:01:22 +00:00
;license:MIT
;(c) 2019 by 4am & qkumba
;
; Functions to enable and disable acceleration on various
; Apple II models, cards, and environments
;
; /!\ These live in LC RAM 2 and rely on other code which is also in LC RAM 2. /!\
2022-08-23 02:04:55 +00:00
; (EnableAccelerator and DisableAccelerator are copied into LC2 in 4cade.init.)
2021-02-16 06:01:22 +00:00
; You can call these functions directly if and only if you are already in LC2.
EnableAcceleratorAndSwitchToBank1
jsr EnableAccelerator
2022-08-23 02:04:55 +00:00
bne + ; always taken
2021-02-16 06:01:22 +00:00
DisableAcceleratorAndSwitchToBank1
jsr DisableAccelerator
2022-08-23 02:04:55 +00:00
+ jmp SwitchToBank1