Skip to content

cd32: fix Microcosm CDXL playback and reduce CD32 chip RAM usage - #1109

Merged
Kalamatee merged 4 commits into
aros-development-team:masterfrom
warpdesign:cd32-microcosm-fixes
Sep 3, 2026
Merged

Kalamatee merged 4 commits into
aros-development-team:masterfrom
warpdesign:cd32-microcosm-fixes

Conversation

@warpdesign

Copy link
Copy Markdown
Contributor

Fixes Microcosm and other memory-sensitive CD32 games by:

  • Correcting CDXL startup, completion, and zero-length transfer handling.
  • Calling CDXL callbacks through the documented register ABI while preserving C nonvolatile registers.
  • Implementing the required SystemControlA() controls, including input and low-level library handling.
  • Reducing CD32 boot-time chip RAM usage from 1,236,496 to 1,562,168 bytes free.
  • Restarting the CIA timer correctly after an aborted request.

Tested with Microcosm, Pinball Illusions, and Superfrog on a stock CD32 configuration with 2 MB chip RAM:

Capture d’écran 2026-09-01 à 01 50 32 Capture d’écran 2026-09-01 à 01 51 23 Capture d’écran 2026-09-01 à 10 06 49 Capture d’écran 2026-09-01 à 10 03 54

Comment thread arch/m68k-amiga/nvdisk/akiko.c
Comment thread rom/dos/createnewproc.c

@Kalamatee Kalamatee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see the individual comments

Fix the bootstrap stack allocation units, reduce measured m68k system-task stacks, shrink CDVDFS readahead, and retire its unused prefs monitor when codesets.library is unavailable. Avoid creating CD32 services until they are needed, including the FMV worker and phantom floppy support. Use Akiko EEPROM storage directly instead of mounting a RAM-backed NVRAM filesystem.\n\nTogether these changes raise free chip RAM at Microcosm startup from 1,236,496 to 1,562,168 bytes. The larger game animation arena prevents the CDXL producer/consumer wrap deadlock and allows the game to complete its introduction and enter gameplay on a stock 2 MB CD32 configuration.
@warpdesign

Copy link
Copy Markdown
Contributor Author

Should be ok now.

@Kalamatee
Kalamatee merged commit d771e49 into aros-development-team:master Sep 3, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants