From cc2bcb8a4db2b659a9a173c53761b77e8c603fb6 Mon Sep 17 00:00:00 2001 From: Marco van den Heuvel Date: Mon, 23 Apr 2018 19:25:11 -0700 Subject: [PATCH] Changed c128 accelerator code and documention to include both C64 and C128 support. --- doc/c128.sgml | 7 ++- doc/funcref.sgml | 22 +++++----- include/accelerator.h | 20 ++++----- libsrc/c128/acc_c128_speed.s | 56 ++++++++++++++++++++++++ libsrc/c128/acc_detect_c128.s | 24 ++++++++++ libsrc/c64/acc_c128_speed.s | 50 +-------------------- testcode/lib/accelerator/Makefile | 6 ++- testcode/lib/accelerator/c64-c128-test.c | 2 +- 8 files changed, 114 insertions(+), 73 deletions(-) create mode 100755 libsrc/c128/acc_c128_speed.s create mode 100755 libsrc/c128/acc_detect_c128.s diff --git a/doc/c128.sgml b/doc/c128.sgml index 9af66d62b..1bdcf01f5 100644 --- a/doc/c128.sgml +++ b/doc/c128.sgml @@ -94,9 +94,12 @@ The functions listed below are accelerator functions for the C128. See the for declaration and usage. +detect_c128 detect_scpu -scpu_get_speed -scpu_set_speed +get_c128_speed +get_scpu_speed +set_c128_speed +set_scpu_speed diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 75028b7b6..55701cf55 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -2930,12 +2930,12 @@ used in presence of a prototype. -/ -The function is specific to the C64. +The function is specific to the C64 and C128. -/ -The function is specific to the C64. -The function does not check for the presence of a C128 in C64 mode. +The function is specific to the C64 and C128. +The function does not check if the C128 CPU is the current CPU. See the accelerator.h header for the speed definitions. -/ -The function is specific to the C64. -The function does not check for the presence of a C128 in C64 mode. +The function is specific to the C64 and C128. +The function does not check if the C128 CPU is the current CPU. See the accelerator.h header for the speed definitions.