You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hyperspeed: Should not require extra zero page addresses #975
enhancementNew functionality or an improvement to existing behavior, including formats and developer tooling.kernalCustom kernals such as JiffyDOS or the UCI Hyperspeed Kernalsoft iecSoftware IEC device behavior, commands, device numbers, and compatibility; not drive emulation.uciC64-side Ultimate Command Interface, command targets, and Ultimate DOS commands; REST is network.
I currently cannot find the discussion, but years ago I discussed it with Gideon: Hyperpeed kernal should not rely on zero oage addresses not being used by the C64 programm. We came to the conclusion that using addresses e. g. $DF17-$DF1A which could be enabled by the UCI would be much better. Just 4 Bytes of extra RAM in the REU/UCI Region. Hyperspeed can only be used when UCI is turned on so that is no limitation at all. And typically a C64 program does not assume having RAM there in the I/O region (not the RAM beyond the I/O), so it will not use it.
On the other hand, a C64 kernal can use that RAM, but it is not force to do so, so no incompability to current implementation.
C64 OS hangs when using hyperspeed, and I cannot tell if it is because a zero page conflict or because of a bug. It would be so great if a zero page conflict would be impossible.
In short: Add 4Byte of RAM (RW registers) in the UCI area $DF17-$Df1A and we are done, assembling the hyperspeed keral with that addresses is an easy task... It would significantly improve compatibility.
@markusC64
I also tried running C64 OS 1.09 from SoftIEC using HyperSpeed KERNAL (including the fix from #931).
First, I performed a fresh installation of C64 OS directly on SoftIEC using JiffyDOS, with the Ultimate IEC driver (U64IEC.R) enabled. C64 OS boots and works correctly with JiffyDOS.
However, when switching to HyperSpeed with UCI enabled, C64 OS consistently hangs while loading App Launcher. I also tested SoftIEC in UCI Only mode, with the same result.
I then tried a different approach:
Booted C64 OS successfully using JiffyDOS and SoftIEC.
Saved the REU contents to a backup file
Switched to HyperSpeed KERNAL with UCI enabled.
Restored the REU backup before starting C64 OS.
This time, C64 OS successfully reached Desktop 1 (App Launcher).
Unfortunately, attempting to switch to Desktop 2 caused C64 OS to hang again.
It seems that restoring the REU contents allows C64 OS to get past the point where it normally hangs during startup, but the problem is still present when switching desktops.
Well, let's not debug C64 OS here, other software may have the same problem using zero page, so the feature request is more universal. But of cause C64 OS is one motivation to do so.
PS: I am not absolutely sure, but I think your approach caches the loaded files in the REU so after that hyperspeed is bypassed...
When we discuss problems, it always helps to state exactly which version we tested it, using the Git ID. This will make it much easier to track things down. Many thanks.
The case I described was tested on the current master branch d568642.
I'm attaching two debug logs: one showing Desktop 2 loading successfully with SoftIEC/JiffyDOS/UCI-disabled +, and another showing C64 OS hanging when attempting to load Desktop 2 from exactly the same point, using SoftIEC/HyperSpeed/UCI-enabled.
Well, honestly I coud write: Really every build of the last ten years. But we could mention the latest I have tested: update_package_v3.15-339-gd5686424f.zip.
There is no version that had RAM there... The topic is to add 4 Bytes of RAM. For a kernal that benefits from using it.
Just to clarify the scope of this issue: I'm not trying to investigate why C64 OS does not work with Hyperspeed enabled. That is a separate debugging task.
The purpose of this issue is to eliminate a potential source of incompatibility by moving the four bytes currently used in the C64's zero page to more suitable RAM locations in the UCI area.
This is a design improvement in its own right, independent of whether a particular software incompatibility can be traced back to these addresses. The C64 OS observation is merely an example of why avoiding unnecessary conflicts with software memory usage is desirable.
I'd prefer to keep this issue focused on the memory allocation change itself.
changed the title [-]Hyperspeed: Should not require extra zero page addressses[/-][+]Hyperspeed: Should not require extra zero page addresses[/+]on Oct 12, 2026
Is it documented somewhere what those extra zeropage locations are? I've been doing c64 game modifications and it would be nice to support hyperspeed kernal also.
enhancementNew functionality or an improvement to existing behavior, including formats and developer tooling.kernalCustom kernals such as JiffyDOS or the UCI Hyperspeed Kernalsoft iecSoftware IEC device behavior, commands, device numbers, and compatibility; not drive emulation.uciC64-side Ultimate Command Interface, command targets, and Ultimate DOS commands; REST is network.
Activity
radius75 commentedon Oct 8, 2026
@markusC64
I also tried running C64 OS 1.09 from SoftIEC using HyperSpeed KERNAL (including the fix from #931).
First, I performed a fresh installation of C64 OS directly on SoftIEC using JiffyDOS, with the Ultimate IEC driver (
U64IEC.R) enabled. C64 OS boots and works correctly with JiffyDOS.However, when switching to HyperSpeed with UCI enabled, C64 OS consistently hangs while loading App Launcher. I also tested SoftIEC in UCI Only mode, with the same result.
I then tried a different approach:
Unfortunately, attempting to switch to Desktop 2 caused C64 OS to hang again.
It seems that restoring the REU contents allows C64 OS to get past the point where it normally hangs during startup, but the problem is still present when switching desktops.
markusC64 commentedon Oct 8, 2026
Well, let's not debug C64 OS here, other software may have the same problem using zero page, so the feature request is more universal. But of cause C64 OS is one motivation to do so.
PS: I am not absolutely sure, but I think your approach caches the loaded files in the REU so after that hyperspeed is bypassed...
chrisgleissner commentedon Oct 8, 2026
When we discuss problems, it always helps to state exactly which version we tested it, using the Git ID. This will make it much easier to track things down. Many thanks.
radius75 commentedon Oct 8, 2026
The case I described was tested on the current
masterbranch d568642.I'm attaching two debug logs: one showing Desktop 2 loading successfully with SoftIEC/JiffyDOS/UCI-disabled +, and another showing C64 OS hanging when attempting to load Desktop 2 from exactly the same point, using SoftIEC/HyperSpeed/UCI-enabled.
uci hskernel hang.log
iec jiffy ok.log
markusC64 commentedon Oct 9, 2026
Well, honestly I coud write: Really every build of the last ten years. But we could mention the latest I have tested: update_package_v3.15-339-gd5686424f.zip.
There is no version that had RAM there... The topic is to add 4 Bytes of RAM. For a kernal that benefits from using it.
markusC64 commentedon Oct 9, 2026
Just to clarify the scope of this issue: I'm not trying to investigate why C64 OS does not work with Hyperspeed enabled. That is a separate debugging task.
The purpose of this issue is to eliminate a potential source of incompatibility by moving the four bytes currently used in the C64's zero page to more suitable RAM locations in the UCI area.
This is a design improvement in its own right, independent of whether a particular software incompatibility can be traced back to these addresses. The C64 OS observation is merely an example of why avoiding unnecessary conflicts with software memory usage is desirable.
I'd prefer to keep this issue focused on the memory allocation change itself.
chrisgleissner commentedon Oct 9, 2026
Hi @bvl1999 , you are mentioned as domain expert on the Hyperspeed kernal in our new CONTRIBUTING.md based in your past contributions.
Before we go ahead with any change, what are your thoughts?
[-]Hyperspeed: Should not require extra zero page addressses[/-][+]Hyperspeed: Should not require extra zero page addresses[/+]grue74 commentedon Oct 13, 2026
Is it documented somewhere what those extra zeropage locations are? I've been doing c64 game modifications and it would be nice to support hyperspeed kernal also.
markusC64 commentedon Oct 13, 2026
Remember, we're discussing changing that. And a combined JiffyDOS-Hyperspeed-kernal cannot use the same addresses, since they are conflicting.
That's the setting the current hyperspeed kernal from the sources here uses: