Added C64/C128 SuperCPU accelerator functions and started on a generic framework for accelerators.

This commit is contained in:
Marco van den Heuvel
2018-04-09 19:36:53 -07:00
parent 60b9ea3222
commit 89c3ed6d7f
9 changed files with 419 additions and 0 deletions

34
asminc/accelerator.inc Normal file
View File

@@ -0,0 +1,34 @@
;
; Accelerator definitions.
;
; ---------------------------------------------------------------------------
; Speed definitions for all accelerator, to be used as input for the 'set'
; functions.
SPEED_SLOW := $00
SPEED_FAST := $FF
SPEED_1X := SPEED_SLOW
SPEED_2X := 2 - 1
SPEED_3X := 3 - 1
SPEED_4X := 4 - 1
SPEED_5X := 5 - 1
SPEED_6X := 6 - 1
SPEED_7X := 7 - 1
SPEED_8X := 8 - 1
SPEED_10X := 10 - 1
SPEED_12X := 12 - 1
SPEED_16X := 16 - 1
SPEED_20X := 20 - 1
; ---------------------------------------------------------------------------
; C64/C128 Super CPU cartridge
SuperCPU_Slow := $D07A
SuperCPU_Fast := $D07B
SuperCPU_Speed_Mode := $D0B8
SuperCPU_Detect := $D0BC