Well, it must be investigated why it doesn't work on real MSX first, before we can think about emulating it. Can you do that investigation?
I have been investigating since yesterday but I need some idea now.
Problem solved!
This is PSG I/O ports that are poorly set. I think I was fixed it, but I hadn't seen that it writes 038h in the register 07 of the PSG in the interrupt routine. By replacing some 038h with 0B8h, the joystick works fine also my MSX1s now.
OpenMSX should indicate that PSG I/O ports are poorly set when the bits 7 and 6 are not 1 and 0. Actually it seems to only consider bit 7. It remains to solve the problem with the sprites with the TMS99xx.
PS: I found that if we press Select key then Space space key (not the trigger) during the intro screen it goes in the joystick test mode. This menu is probably there because the developer was having trouble mastering the joysticks.
But, gdx, openMSX does warn for the wrong PSG port directions,doesn't it?
See
About select: some versions of Oh Shit mention select on the title screen to start the joystick test, see:
Wait, which machines did you try in openMSX? When I emulate a Toshiba HX-10D, the joystick isn't working. When I emulate a Philips VG-8020/20 (which has S3527) the joystick works fine.
Ah-ah, the openMSX emulation is too good . Incompatibilities between machines are so often blamed on the emulator, the first question should always be: did you try this on the exact same configuration in openMSX? Same machine, same extensions, etc.
No, openMSX warns for the wrong PSG port directions on versions of Panique found on the net but not with the version that I was (partially) fixed (Rom with crc32=D3D8F413).
which machines did you try in openMSX?
National CF-2700 + MMM. I tried also with the Philips VG-8020-20 and the joystick works too (OpenMSX 0.15.0 for Mac)
The new version of Panique that works now on real MSX1 has crc32=9BE13576.
Can you help me to get that old version?
Anyway, you're right, we only have that warning for bit 6.
The proper behaviour of PSG port directions is implemented in openMSX 16.0 (and later). So, please upgrade to 16.0 (or try out the openMSX 17.0-rc1 development build!) and the emulation will be fine.
Thank Manuel!
Want the old version (D3D8F413) of Panique?
Well, only if it doesn't behave like the real machine in openMSX.