PCem patches (post rev-347)

Support and general discussion.
Post Reply
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

PCem patches (post rev-347)

Post by SarahWalker »

As Retro Software is still down, I'll post newer patches here for now. I'm assuming everyone has rev 347, which was the last version before the repo went down. Please do NOT post to this thread, any new bugs should be raised as new threads as normal.

348 - Removed a bunch of old #defines. Cleaned up some dead code.
349 - Fixed display size on ViRGE.
350 - Clear PIC interrupt service registers on writing ICW1. Fixes CTRL-ALT-DEL on some BIOSes.
351 - Implemented VGA attribute enable bit in attribute index - VGA grabber in Windows 3.x now works properly.
Attachments
351.patch
(2.01 KiB) Downloaded 296 times
350.patch
(934 Bytes) Downloaded 282 times
349.patch
(4.54 KiB) Downloaded 269 times
348.patch
(5.56 KiB) Downloaded 290 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

352 - First FDC Sense Interrupt Status command after post-reset ready state change results is now zero. Fixes Grey Cat Linux.
Attachments
352.patch
(1.25 KiB) Downloaded 271 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

353 - Added FPREM1 instruction for Interstate '76.
Attachments
353.patch
(2.31 KiB) Downloaded 267 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

354 - FPU rounding modes now have effect in FADD double precision. Fixes rendering in Interstate '76.
Attachments
354.patch
(4.85 KiB) Downloaded 269 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

355 - Nearest FPU rounding mode now handles negative numbers correctly. Fixes Retro City Rampage 486.
Attachments
355.patch
(1.66 KiB) Downloaded 272 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

356 - Implemented ViRGE 2D Polygon Fill command.
Improvements to ViRGE line draw.

357 - More changes to FPU nearest rounding, Unreal works again.
Attachments
357.patch
(3.52 KiB) Downloaded 273 times
356.patch
(9.13 KiB) Downloaded 264 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

358 - Implement ATAPI Stop Play/Scan command.
Stop CD audio playback on IDE reset, ATAPI reset, and hard reset.
Attachments
358.patch
(2.31 KiB) Downloaded 268 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

359 - Corrected MSF->LBA conversion for CD audio.

360 - Starting Sound Blaster DMA now clears pause status.
Implemented dummy ASP/CSP upload command (DSP command 0x01).
Fixes issues with SB16/AWE32 drivers in Windows 3.x.
Attachments
360.patch
(2.79 KiB) Downloaded 258 times
359.patch
(1.08 KiB) Downloaded 263 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

361 - Cancel FDC ready state change reports from reset on submission of recalibrate command. Phoenix XT clone now boots from floppy.
Attachments
361.patch
(1.93 KiB) Downloaded 272 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

362 - Voodoo texture processing now dependent on texturing being enabled in fbzColorPath. Fixes transparency issues in Tomb Raider, might cause speedup in games that use non-textured triangles.

363 - Removed bad Num Lock handling code.
Attachments
363.patch
(827 Bytes) Downloaded 266 times
362.patch
(5.11 KiB) Downloaded 258 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

364 - Re-implemented FDC Read a Track command. King's Quest 1 booter works again.
Attachments
364.patch
(8.85 KiB) Downloaded 278 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

365 - Voodoo floating point parameters are converted to fixed point on register write instead of on triangle command. Fixes health bar in Tomb Raider.

366 - Voodoo now always allocates 4MB for framebuffer memory, though only 2MB may be accessible. Fixes crash in Need For Speed III when using 800x600 (no Z-buffer) with 2MB of framebuffer memory configured.
Attachments
366.patch
(945 Bytes) Downloaded 255 times
365.patch
(6.77 KiB) Downloaded 250 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

367 - Don't reset IDE block size on IDE soft reset.
Attachments
367.patch
(701 Bytes) Downloaded 247 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

368 - Force PCem to leave fullscreen mode when losing focus.
DirectInput mouse initialisation no longer fails if mouse can not be immediately acquired.
Attachments
368.patch
(1.55 KiB) Downloaded 243 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

369 - Reverted rev 339. Fixes Adlib Gold jukebox.
Disable PIT timer operation between write of control word and initial count. Lemmings High Performance PC mode now works without incorrect rev 339 commit.

370 - Ignore odd/even mode when loading VGA latches on memory read. Fixes Jazz Jackrabbit.
Attachments
370.patch
(1.77 KiB) Downloaded 241 times
369.patch
(3.25 KiB) Downloaded 224 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

371 - Correct S3 class code.
Limit S3 attribute registers to those actually present - no longer falsely detects as ET4000.
Don't update current position registers at the end of BitBlt command.
Fixes S3 on SUSE 6.3.
Attachments
371.patch
(2.04 KiB) Downloaded 226 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

372 - Initialise A20 gate correctly at startup.
Keyboard controller self-test command enables A20.
HIMEM.SYS included with Windows/286 now works.
Attachments
372.patch
(2.57 KiB) Downloaded 231 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

373 - Fix ATAPI interrupt status following Mode Select command - fixes OS/2 Warp 3 CD installer.
Attachments
373.patch
(789 Bytes) Downloaded 222 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

374 - Disabled opcode 0x86 (XCHG byte) on x86-64 recompiler.
Attachments
374.patch
(919 Bytes) Downloaded 243 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

375 - Tweaked PIT GATE handling, fixes Lemmings 2.

376 - Amplified EMU8000 output a bit.
Attachments
376.patch
(1.05 KiB) Downloaded 218 times
375.patch
(2.08 KiB) Downloaded 231 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

377 - Implemented PS/2 mouse Status Request command.
Attachments
377.patch
(2.07 KiB) Downloaded 214 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

378 - CD-ROM drive is now secondary master if no hard drive is present in that position.
Attachments
378.patch
(864 Bytes) Downloaded 210 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

379 - Fixed stupid typos in FPU rounding - Unreal software mode works again.
Attachments
379.patch
(2.83 KiB) Downloaded 227 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

380 - Implemented keyboard Enable Mouse Port command. Fixes PS/2 mouse in Windows NT.
Attachments
380.patch
(848 Bytes) Downloaded 227 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

381 - Implement PPI switch read correctly for IBM PC.
Attachments
381.patch
(2.33 KiB) Downloaded 235 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

382 - Bumped version number up to v10.
Updated readme file.

383 - Clear _mem_exec array on init/reset.
Do not add (junk) entries to _mem_exec if mapping is not executable.
Do not fatal() on attempting to execute from non-executable memory; return page of 0xff instead.
Fixes emulator crash in Premiere/PCI when leaving BIOS setup without a valid CMOS setup.
Attachments
383.patch
(2.59 KiB) Downloaded 208 times
382.patch
(17.78 KiB) Downloaded 211 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

384 - Add range checks to ET4000/W32p VRAM read/write functions.

385 - Add range checks to PIIX read/write functions.
Attachments
385.patch
(4.39 KiB) Downloaded 220 times
384.patch
(1.43 KiB) Downloaded 213 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

386 - Removed redundant memcpy from rev 385.

387 - Added command line option to start in fullscreen mode.

388 - Don't create Voodoo memory dump in release build.
Attachments
388.patch
(775 Bytes) Downloaded 210 times
387.patch
(5.54 KiB) Downloaded 219 times
386.patch
(953 Bytes) Downloaded 220 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

389 - Added command line option to specify config file to use on startup.
Attachments
389.patch
(2.14 KiB) Downloaded 221 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: PCem patches (post rev-347)

Post by SarahWalker »

I am retiring this topic as the repository is online again, at https://bitbucket.org/pcem_emulator/pcem
Post Reply