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

Radical Rex (USA) Sega CD crashes out during the intro #100

Closed
benderscruffy opened this issue Jun 24, 2024 · 2 comments
Closed

Radical Rex (USA) Sega CD crashes out during the intro #100

benderscruffy opened this issue Jun 24, 2024 · 2 comments
Labels
bug Something isn't working fixed-next-release Fixed on master, will go into next release md Genesis / Mega Drive

Comments

@benderscruffy
Copy link

No description provided.

@jsgroth jsgroth added bug Something isn't working md Genesis / Mega Drive labels Jun 24, 2024
@jsgroth
Copy link
Owner

jsgroth commented Jun 24, 2024

The crash occurs because of an address error exception on the sub CPU. If I disable 68000 address error emulation then the game is playable but all sprites are missing in the intro and the main menu, exact same bug as this (which it looks like was only recently fixed in GPGX and PicoDrive): ekeeke/Genesis-Plus-GX#290

There are a few CDD behaviors described in that thread that I don't currently emulate, but Radical Rex seemingly only depends on one of them: If a game issues a Read command to the CD drive while it's already playing/reading, it needs to read at least one more sector from the previous location before it starts seeking to the new location.

@jsgroth
Copy link
Owner

jsgroth commented Jun 24, 2024

I changed the CDD to always read one more sector if it is playing and a command changes the state to something else, which fixes both the address error and the missing sprites:
rex

While this game is booting, immediately after the drive reads the sector at 00:03:48 the game issues a Read command for 00:02:61. It depends on the drive reading the sector at 00:03:49 before it starts seeking to 00:02:61.

@jsgroth jsgroth added the fixed-next-release Fixed on master, will go into next release label Jun 24, 2024
@jsgroth jsgroth closed this as completed Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed-next-release Fixed on master, will go into next release md Genesis / Mega Drive
Projects
None yet
Development

No branches or pull requests

2 participants