From 3f5683b39139bd7f211fd72822c562863014e6cb Mon Sep 17 00:00:00 2001 From: Marco van den Heuvel Date: Fri, 20 Apr 2018 12:08:28 -0700 Subject: [PATCH] Added C128 in C64 mode accelerator code and documentation. --- asminc/accelerator.inc | 7 +++ doc/c64.sgml | 3 ++ doc/funcref.sgml | 67 ++++++++++++++++++++++++ include/accelerator.h | 39 ++++++++++++++ libsrc/c64/acc_c128_speed.s | 53 +++++++++++++++++++ libsrc/c64/acc_detect_c128.s | 33 ++++++++++++ testcode/lib/accelerator/Makefile | 4 +- testcode/lib/accelerator/c64-c128-test.c | 8 +++ 8 files changed, 213 insertions(+), 1 deletion(-) create mode 100755 libsrc/c64/acc_c128_speed.s create mode 100755 libsrc/c64/acc_detect_c128.s create mode 100755 testcode/lib/accelerator/c64-c128-test.c diff --git a/asminc/accelerator.inc b/asminc/accelerator.inc index 1008b49c1..86d27b3f2 100644 --- a/asminc/accelerator.inc +++ b/asminc/accelerator.inc @@ -40,3 +40,10 @@ C64DTV_Extended_Regs := $D03F C64DTV_Slow = $00 C64DTV_Fast = $03 + + +; --------------------------------------------------------------------------- +; C128 in C64 mode + +C128_VICIIE_CLK := $D030 + diff --git a/doc/c64.sgml b/doc/c64.sgml index f1e678c72..03a03974c 100644 --- a/doc/c64.sgml +++ b/doc/c64.sgml @@ -176,10 +176,13 @@ url="funcref.html" name="function reference"> for declaration and usage. detect_c64dtv +detect_c128 detect_scpu get_c64dtv_speed +get_c128_speed get_scpu_speed set_c64dtv_speed +set_c128_speed set_scpu_speed diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 268c210fe..17a42b103 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -69,10 +69,13 @@ function. + + + @@ -2943,6 +2946,26 @@ used in presence of a prototype. +detect_c128