VOGONS


UniPCemu progress

Topic actions

Reply 800 of 806, by superfury

User metadata
Rank l33t++
Rank
l33t++

A slight restart of WI=indows 95 setup (from the MS-DOS prompt again after a quick format of the hard disk) since I had a slight bug in my new 16-bit TSS cpu instruction step-based validation function call (causing an invalid recursive infinite self-call of the same function at the third line of the function instead of calling the proper wrapped function, which shares part of it's own name (just CPU_ prefixed and _protectedmode suffixed)). That improves the generic protected mode speed (not requiring TLB refills when it doesn't need to and improves support for proper nested and interruptable operation.

So far Windows 95 OSR 2.5 "C" setup is proceeding (at the file copy process so far of the first phase), I'll know if it works correctly once Internet Explorer completes it's installation after the 2 reboots after it have been done (1 reboot during setup itself and 1 for completing the installation and starting to install internet explorer (hopefully without crashing this time)). If that runs properly I can start looking into Windows 3.1's FPU issues (Pink Panther in Hocus Pokus Pink hanging the OS due to FPU emulation issues) again (and NT 4 SP6's login issues (netlogon service not running, preventing logon to the SP6 install) might have been fixed as well, but I'll need to check 95 to be working properly first).

Edit: Windows 95 setup phase 2 crashes (BSOD) before reaching the GUI, on a NULL ES register being accessed with (4GB kernel segment) with DPL=0 and Present set to 0, implying the cause is an IRET leaving the kernel segment selector in there without reloading the user-mode segment properly before the return (probably POP ES failing somehow)?

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io

Reply 801 of 806, by superfury

User metadata
Rank l33t++
Rank
l33t++

So far, with the latest bugfixes (all memory checks on protected mode accesses using the same step-based co-routine handling as the other protected mode handling) Windows 95 hasn't crashed yet (right now at the Web Authoring Components, substep "Installing Microsoft Web Publishing Wizard" and didn't BSOD yet, 94% done of the Internet Explorer 4 Active Setup).

Also tried the good old Wing Commander Privateer test. It doesn't crash anymore either (managed to fire up the game after loading the mouse driver high using lh with the himem.sys loaded and DOS=HIGH enabled). Although the mouse flipped (because of using RDP to move the mouse, which my app doesn't like sometimes, moving huge distances causing it to hang (fixed by exiting or entering direct input mode in the latest commits, which resets all emulated mouse movement counters to 0), the game seemed to run at least (with the HUD moving too much constantly non-stop). But at least it doesn't crash anymore, so that's a good sign! 😁

Edit: Proceeded on to "Data Components for Internet Explorer" now at 95% done. Probably doesn't crash anymore now, but I won't believe it until it fully completes without a crash.
Edit: So far reached setting up personalized settings for Microsoft Internet Explorer 4.0. No crashes yet.
Edit: Still running. Setting up Internet Connection Wizard now, then Start Menu Shortcuts.
Edit: Completed setup without visible issues and rebooted.

In the meanwhile I've been testing WFW 3.11. It still seems to have issues with co-processor emulation both in calc.exe (not running while it should) and some Win32s games I tested (faulty co-processor emulation somehow, with the emulator hanging itself). The BIOS still reports the FPU as existing, while it shouldn't, which probably explains this problem.
Windows 9x calc.exe works without issues though, so it seems a Windows 3.x issue (or the BIOS).

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io

Reply 802 of 806, by superfury

User metadata
Rank l33t++
Rank
l33t++

Hmmm... Within Windows 95 OSR 2.5 I see something strange though. For some reason it isn't detecting the ET4000/W32i video card anymore, somehow detecting a normal VGA instead?

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io

Reply 803 of 806, by superfury

User metadata
Rank l33t++
Rank
l33t++

And fixed the ATA DMA commands to work properly again for their non-EXT versions (they were executing their flags being set, then continuing into the EXT versions of their commands (that errored out without EXT and set EXT execution, which they shouldn't), while they should instead just execute the normal version of those DMA commands as documented (and as the older UniPCemu releases already did before those EXT commands were added).

Also, the video card detection (and use in OS-es except basic MS-DOS testsuites for Tseng chips) issue was due to the new interaction of the KEY vs the segment select registers. This has been improved and the KEY setting/clearing emulation has also been improved to be more robust and accurate.
The segment select registers are now enabled by either KEY being set and with KEY having been set since a synchronous reset (which sets a second flag that also enables the segment select registers just as the KEY). A synchronous reset clears that segment select register enable, also clearing said register (as W32 documentation says), with the segment select register enable being cleared provided that the KEY is disabled at the synchronous reset (basically a synchronous reset sets the segment select register enable to the current KEY state).
And also improved the KEY being able to be set and reset using any order of hercules compatibility register and following mode control bits 7/5 being (re)set afterwards. They are now handled as a set combined instead of a specific order of values being required (so you can now set the hercules mode register bit 1 followed by non-bits 7/5 in the mode register (disables KEY) followed by setting those bits (enabling the key). Though the reverse order isn't possible (first mode control register bits and then hercules mode register bit 1 to enable the KEY has no effect, although writing the mode control register after it again will enable the KEY).
Basically the hercules register sets a latch to allow the mode control registers (CGA or MDA) to set/clear the key. Clearing the hercules register bit 1 clears the KEY immediately.

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io

Reply 804 of 806, by superfury

User metadata
Rank l33t++
Rank
l33t++

Managed to (seemingly) fix BIOS hard drive detection without a slave present by floating the bus when reading from the 1x1-1x5 registers. That includes the error register response from the slave.
Edit: And improved TOC and Read capacity to report the documented information for the disk capacity using LBA and MSF formats.

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io

Reply 805 of 806, by superfury

User metadata
Rank l33t++
Rank
l33t++

OK. I notice something weird with Rayman under MS-DOS vs under Windows 95. Under Windows 95 it properly sets the SubQ bit in the read sub-channel command. Thus it receives a correct response and starts the game properly.

But under MS-DOS 6.22 and Windows MS-DOS 7 boot disks it will fail due to the driver not setting the SubQ bit properly, thus confusing the Rayman game application by giving back an incorrect result length, making it say that MSCDEX is corrupt.

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io

Reply 806 of 806, by superfury

User metadata
Rank l33t++
Rank
l33t++

Just improved the ATAPI drives to keep some precalc buffers for applying the volume from the mode pages in the ATAPI drives. It now allows for the 256 documented levels of attenuation (what it uses the 256K memory of lookup tables for) and also allows dynamic mapping of the 4 (of which 2 (normal stereo) are implemented) audio channels onto the 2 stereo audio outputs (the other 2 channels are ignored right now, as they're unsupported).

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io