Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rc2014: adapt to new RomWBW memory layout #1126

Merged

Conversation

ra1fh
Copy link
Contributor

@ra1fh ra1fh commented Dec 23, 2024

RomWBW version 3.4 changed the memory layout, putting the HBIOS working copy into RAM bank 0. To prevent the Fuzix loader from overwriting HBIOS, store data for bank 0 temporarily in bank 4. Copy bank 4 to bank 0 immediately before starting the kernel, when no more RomWBW calls are needed.

This works with older RomWBW versions as well, which had HBIOS in nRAM-2 and lower banks were free to use.

Tested with RomWBW 3.2, 3.4, 3.5-dev.101 on Zed Pro.

RomWBW version 3.4 changed the memory layout, putting the HBIOS working
copy into RAM bank 0. To prevent the Fuzix loader from overwriting
HBIOS, store data for bank 0 temporarily in bank 4. Copy bank 4 to bank
0 immediately before starting the kernel, when no more RomWBW calls are
needed.

This works with older RomWBW versions as well, which had HBIOS in nRAM-2
and lower banks were free to use.

Tested with RomWBW 3.2, 3.4, 3.5-dev.101 on Zed Pro.
@EtchedPixels EtchedPixels merged commit c1745ac into EtchedPixels:master Dec 26, 2024
11 of 13 checks passed
@EtchedPixels
Copy link
Owner

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants