From ad7b339c449bb680e58ba240d37db8581015a60c Mon Sep 17 00:00:00 2001 From: Marco van den Heuvel Date: Mon, 30 Apr 2018 14:30:35 -0700 Subject: [PATCH] Added C64 Turbo Master accelerator code and documentation. --- asminc/accelerator.inc | 9 ++++ doc/c64.sgml | 3 ++ doc/funcref.sgml | 67 +++++++++++++++++++++++++++++ include/accelerator.h | 41 ++++++++++++++++++ libsrc/c64/acc_detect_turbomaster.s | 47 ++++++++++++++++++++ libsrc/c64/acc_turbomaster_speed.s | 63 +++++++++++++++++++++++++++ testcode/lib/accelerator/Makefile | 5 ++- 7 files changed, 234 insertions(+), 1 deletion(-) create mode 100755 libsrc/c64/acc_detect_turbomaster.s create mode 100755 libsrc/c64/acc_turbomaster_speed.s diff --git a/asminc/accelerator.inc b/asminc/accelerator.inc index a92b65ff9..23a9686c7 100644 --- a/asminc/accelerator.inc +++ b/asminc/accelerator.inc @@ -69,3 +69,12 @@ C65_VICIII_CTRL_B := $D031 C65_VICIII_UNLOCK_1 = $A5 C65_VICIII_UNLOCK_2 = $96 + + +; --------------------------------------------------------------------------- +; C64 Turbo Master cartridge + +TURBOMASTER_DETECT := $BF53 + +TURBOMASTER_SPEED_REG := $00 + diff --git a/doc/c64.sgml b/doc/c64.sgml index 800314fec..98008ef41 100644 --- a/doc/c64.sgml +++ b/doc/c64.sgml @@ -180,16 +180,19 @@ url="funcref.html" name="function reference"> for declaration and usage. detect_c65 detect_chameleon detect_scpu +detect_turbomaster get_c128_speed get_c64dtv_speed get_c65_speed get_chameleon_speed get_scpu_speed +get_turbomaster_speed set_c128_speed set_c64dtv_speed set_c65_speed set_chameleon_speed set_scpu_speed +set_turbomaster_speed diff --git a/doc/funcref.sgml b/doc/funcref.sgml index edca7745e..946b88159 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -73,16 +73,19 @@ function. + + + @@ -3032,6 +3035,26 @@ used in presence of a prototype. +detect_turbomaster