Baron-von-Riedesel / Jemm

Jemm386 and JemmEx are socalled EMMs ( Expanded Memory Managers ) or, more exactly, V86 monitors.
124 stars 11 forks source link

Realms of Arkania 2: Startrail #18

Closed vanfanel closed 2 months ago

vanfanel commented 1 year ago

Hi there,

No matter what JEMMEX options I try, this game always crashed with a JEMMEX EXCEPTION error on every machine where I try to run it.

So has somebody got it to work with JEMMEX?

Baron-von-Riedesel commented 1 year ago

Don't have that game, so cannot try by myself. Try QEMM or 386MAX!

vanfanel commented 1 year ago

Hello @Baron-von-Riedesel

This is what I get with JEMMEX, in case you can give me any hints: photo_2023-07-30_15-50-59

What's exception 06? Does it ring any bells?

If I add the SB parameter to JEMMEX, the game simply reboots at that point.

Baron-von-Riedesel commented 1 year ago

What's exception 06? Does it ring any bells?

Well, it's an "invalid opcode" exception. As it can be seen that memory at CS:IP contains lots of 'FF's, that exception isn't a big surprise. Regretably, the dump isn't a big help either in this case.

vanfanel commented 1 year ago

What's exception 06? Does it ring any bells?

Well, it's an "invalid opcode" exception. As it can be seen that memory at CS:IP contains lots of 'FF's, that exception isn't a big surprise. Regretably, the dump isn't a big help either in this case.

Is there a way to somehow isolate that memory area so JEMMEX doesn't use it or something like that?

Baron-von-Riedesel commented 1 year ago

is there a way to somehow isolate that memory area so JEMMEX doesn't use it or something like that?

The problem here is that the crash itself doesn't give any hint about what the real problem is.

What I can see, though, is that this is not the current version of JemmEx - because register CR2 is displayed, while the current JemmEx should display the contents of register CR4. Just mention that, I don't think that it makes any difference.

vanfanel commented 1 year ago

@Baron-von-Riedesel I see, I guess latest release is here?

https://github.com/Baron-von-Riedesel/Jemm/releases

Also, I would like to add that the crash happens when I move the mouse around: if I don't move the mouse, I never get the crash! I can use the keyboard and the game doesn't crash. I am using CTMOUSE as my mouse driver. Maybe that means something?

Baron-von-Riedesel commented 1 year ago

the crash happens when I move the mouse around: if I don't move the mouse, I never get the crash!

So it might be a problem with IRQs or stacks. And how's the mouse connected? PS/2, USB or Serial?

vanfanel commented 1 year ago

I have several systems running JEMMEX. In all of them, mouse is connected on USB using PS/2 emulation. For example, the Tinyllama v2 uses hardware USB HID (keyboard+mouse) to PS/2 emulation using rasteri's HIDman firmware running on a CH559 microcontroller.

I also have several laptops running FreeDOS, using USB mouse on PS/2 emulation, an in all of them JEMMEX crashes using Arkania 2, with the exact same errors on screen.

Baron-von-Riedesel commented 1 year ago

I also have several laptops running FreeDOS ...

IMO the first step is to use MS-DOS instead of FD to avoid any possible incompatibilities.

vanfanel commented 2 months ago

I also have several laptops running FreeDOS ...

IMO the first step is to use MS-DOS instead of FD to avoid any possible incompatibilities.

You were totally right on this. With MS-DOS, the game runs perfectly well!