From 11629bcf990bcc91326f33cb668749a9fa79c9eb Mon Sep 17 00:00:00 2001 From: Marco van den Heuvel Date: Fri, 27 Apr 2018 14:22:41 -0700 Subject: [PATCH] Added C65/C64DX accelerator code and documentation. --- asminc/accelerator.inc | 9 ++++ doc/c64.sgml | 3 ++ doc/funcref.sgml | 67 +++++++++++++++++++++++++++ include/accelerator.h | 37 +++++++++++++++ libsrc/c64/acc_c65_speed.s | 70 +++++++++++++++++++++++++++++ libsrc/c64/acc_detect_c65.s | 55 +++++++++++++++++++++++ testcode/lib/accelerator/Makefile | 6 ++- testcode/lib/accelerator/c65-test.c | 8 ++++ 8 files changed, 254 insertions(+), 1 deletion(-) create mode 100755 libsrc/c64/acc_c65_speed.s create mode 100755 libsrc/c64/acc_detect_c65.s create mode 100644 testcode/lib/accelerator/c65-test.c diff --git a/asminc/accelerator.inc b/asminc/accelerator.inc index 0c687b2ad..a92b65ff9 100644 --- a/asminc/accelerator.inc +++ b/asminc/accelerator.inc @@ -60,3 +60,12 @@ CHAMELEON_DISABLE_REGS = $FF CHAMELEON_CFGTUR_LIMIT_1MHZ = %00001100 CHAMELEON_CFGTUR_LIMIT_NONE = %10000000 + +; --------------------------------------------------------------------------- +; C65/C64DX in C64 mode + +C65_VICIII_KEY := $D02F +C65_VICIII_CTRL_B := $D031 + +C65_VICIII_UNLOCK_1 = $A5 +C65_VICIII_UNLOCK_2 = $96 diff --git a/doc/c64.sgml b/doc/c64.sgml index c037b1e0e..800314fec 100644 --- a/doc/c64.sgml +++ b/doc/c64.sgml @@ -177,14 +177,17 @@ url="funcref.html" name="function reference"> for declaration and usage. detect_c128 detect_c64dtv +detect_c65 detect_chameleon detect_scpu get_c128_speed get_c64dtv_speed +get_c65_speed get_chameleon_speed get_scpu_speed set_c128_speed set_c64dtv_speed +set_c65_speed set_chameleon_speed set_scpu_speed diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 09ee27e4a..edca7745e 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -70,14 +70,17 @@ function. + + + @@ -2969,6 +2972,26 @@ used in presence of a prototype. +detect_c65