OpenRakis/Cryogenic

The code crashes the emulator

Closed this issue · 2 comments

After a Grp5 instruction.
The DOSInt21Handler is asked for a service at index 0
It doesn't exist -> exception -> crash.

Doesn't happen in the Java original, with or without running overrides from CryoDuneRE.

Also neither does the call for the service at index 0, neither the crash happen with the emulator alone (: without cryogenic injecting any code)

It also doesn't happen if --UseCodeOverrides is not specified.

Fixed in spice86 with commit OpenRakis/Spice86@951894a !
The emulator was not calling what the override was returning and this was causing anything overridden to be called twice.