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

DOS programs crash Windows 3.1 (386 mode) #20

Closed
barotto opened this issue Jan 21, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@barotto
Copy link
Owner

commented Jan 21, 2018

When a DOS program is launched, Win 3.1 (386) returns to the DOS prompt.
The keyboard becomes unresponsive half the time.

issue20

@barotto barotto added the bug label Jan 21, 2018

@barotto barotto added this to the Version 0.9 milestone Jan 21, 2018

@waltje

This comment has been minimized.

Copy link

commented Apr 23, 2018

I tested this on the 2011 in 286 mode, and that works as expected. Will test on the 2121 in 386 next.

@superfury

This comment has been minimized.

Copy link

commented Aug 22, 2018

Got the same issue on UniPCemu in Standard mode. The info about exit to return to Windows is printed, then 50% or less of key input is discarded somehow(even same keys being pressed after each other). Maybe an issue with config? I have "switches=/k" in config.sys' common section. Might that be a cause?

@barotto

This comment has been minimized.

Copy link
Owner Author

commented Aug 23, 2018

I can't say much about this problem until I've fixed #34 and #35, which I think could be related (especially #34).
But this is a 386 mode problem for me, so your situation could be much different.

Now that I think about it, the fact that the keyboard is not responding could be due to a corruption of the IDT by a buggy memory operation. I would set a mem trap on the IDT segment (or real mode IVT) to see what happens at Windows exit.

@superfury

This comment has been minimized.

Copy link

commented Sep 30, 2018

But since part of the input comes through, some keys DO end up at the MS-DOS prompt(UniPCemu running 80386 executing Windows 3.1 in Standard mode). It looks like there's some odd kind of delay of sorts between the key input and the MS-DOS buffer? The keys don't end up in the MS-DOS buffer until at least five to ten/twenty keys have been pressed after it. Like there's some kind of input-timed(not RTC/PIT-timed) lag between the reading of the input buffer? Maybe an issue to do with the 8042? The input clock comes to mind(not emulated at all atm, except basic timings for receiving input)? (Windows 3.1 still returns to text mode without any text on the screen when running in 386-Enhanced mode in UniPCemu)

@barotto barotto closed this in edd02d2 Oct 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.