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