2 ; Marco van den Heuvel, 2018-04-09
5 ; unsigned char __fastcall__ set_scpu_speed (unsigned char speed);
7 ;/* Set the speed of the SuperCPU cartridge, using SPEED_SLOW will switch to
8 ; * 1 Mhz mode, SPEED_20X or SPEED_FAST will switch to 20 Mhz mode.
10 ; * Note that any value lower than SPEED_20X will switch to 1 Mhz mode, and
11 ; * any value higher or equal to SPEED_20X will switch to 20 Mhz mode.
13 ; * This function will return the actual speed the CPU is at after trying
14 ; * to set the requested speed, if this is not the speed that was requested
15 ; * then possibly the hardware speed switch prevented any software speed
18 ; * This function does not check for the presence of the SuperCPU cartridge,
19 ; * make sure you use 'detect_scpu();' before using.
22 ; unsigned char get_scpu_speed (void);
24 ;/* Get the speed of the SuperCPU cartridge.
26 ; * Possible return values:
27 ; * SPEED_1X : 1 Mhz mode
28 ; * SPEED_20X : 20 Mhz mode
30 ; * This function does not check for the presence of the SuperCPU cartridge,
31 ; * make sure you use 'detect_scpu();' before using.
34 .export _set_scpu_speed
35 .export _get_scpu_speed
37 .include "accelerator.inc"
51 lda SuperCPU_Speed_Mode