MiSTer-devel / PCXT_MiSTer

PCXT port for MiSTer by spark2k06.
GNU General Public License v3.0
14 stars 8 forks source link

Keyb sp or any other language is giving a lot of troubles with keyboard #27

Closed somhi closed 1 year ago

somhi commented 1 year ago

After loading keyb sp or any other language, after pressing Shift key, you cannot go back to write in lower-case letters. Also in edit for example the ESC key does not work.

I've tested a program called keybsp v5.0 from CiriSOFT and is working well.

jsmolina commented 1 year ago

I've been investigating and trying with both dosbox and the core.

Scancode is correct, but I got an absolute hang here: WhatsApp Image 2022-10-28 at 20 59 56

This is dosbox behaviour: https://user-images.githubusercontent.com/447481/198712764-e96d751a-d760-4af8-aa96-6f965d520728.mov

jsmolina commented 1 year ago

KEY2.zip This is the code I used

spark2k06 commented 1 year ago

This application also hangs on 86Box/PCem with the IBM XT machine (1982), for example..., it is not useful for testing.

And forget DOSBOX for testing, either use real machines or the best alternative is PCem/86Box, on a machine like Tandy 1000 or IBM XT from 1982.

spark2k06 commented 1 year ago

Investigating further together with kitune-san, we have located the bug, which is in the MCL86 core:

MCL86:

image

PCem/86Box:

image

@kitune-san poses the following solution in the MCL86 microcode:

https://github.com/MiSTer-devel/PCXT_MiSTer/commit/ad211c33e262d7fb637e9462945fc47f311765b2

@MicroCoreLabs is making sure it's all correct and this doesn't affect other 0xF6 opcodes.

spark2k06 commented 1 year ago

@MicroCoreLabs confirms that everything is correct. Thank you all.