Commit Graph

57 Commits

Author SHA1 Message Date
OBattler
9b80d4b151 Made the sanity fatal() milder in rom_load_linear() as well. 2020-01-16 00:40:42 +01:00
OBattler
af023ff5dd Fixed the second batch of problems 2020-01-15 03:48:33 +01:00
OBattler
d5100ec287 Applied a mask to the return values of the two calls to fgetc() in the ROM code. 2020-01-15 00:42:43 +01:00
OBattler
1f4927cdce Fixed a potential overrun in the ROM code. 2020-01-15 00:39:55 +01:00
OBattler
552a87ea3d Added the IBM 5161 ISA expansion for PC and XT;
Cleaned up the parallel port emulation, added IRQ support, and made enabling/disabling per port;
Added the Award 430NX and the Intel Classic/PCI (Alfredo, 420TX);
Finished the 586MC1;
Added 8087 emulation;
Moved Cyrix 6x86'es to the Dev branch;
Sanitized/cleaned up memregs.c/h and intel.c/h;
Split the chipsets from machines and sanitized Port 92 emulation;
Added support for the 15bpp mode to the Compaq ATI 28800;
Moved the MR 386DX and 486 machines to the Dev branch;
Ported the new dynamic recompiler from PCem, but it remains in Dev branch until after v2.00;
Ported the new timer code from PCem;
Cleaned up the CPU table of unused stuff and better optimized its structure;
Ported the Open-XT and Open-AT from VARCem, the Open-AT is in the Dev branch;
Ported the XT MFM controller rewrite and adding of more controllers (incl. two RLL ones), from VARCem;
Added the AHA-1540A and the BusTek BT-542B;
Moved the Sumo SCSI-AT to the Dev branch;
Minor IDE, FDC, and floppy drive code clean-ups;
Made NCR 5380/53C400-based cards' BIOS address configurable;
Got rid of the legacy romset variable;
Unified (video) buffer and buffer32 into one and make the unified buffer 32-bit;
Added the Amstead PPC512 per PCem patch by John Elliott;
Switched memory mapping granularity from 16k to 4k (less than 1k not possible due to internal pages);
Rewrote the CL-GD 54xx blitter, fixes Win-OS/2 on the 54x6 among other thing;
Added the Image Manager 1024 and Professional Graphics Controller per PCem patch by John Elliott and work done on VARCem;
Added Headland HT-216, GC-205 and Video 7 VGA 1024i emulation based on PCem commit;
Implemented the fuction keys for the Toshiba T1000/T1200/T3100 enhancement;
Amstrad MegaPC does now works correctly with non-internal graphics card;
The SLiRP code no longer casts a packed struct type to a non-packed struct type;
The Xi8088 and PB410a no longer hang on 86Box when PS/2 mouse is not present;
The S3 Virge on BeOS is no longer broken (was broken by build #1591);
OS/2 2.0 build 6.167 now sees key presses again;
Xi8088 now work on CGA again;
86F images converted from either the old or new variants of the HxC MFM format now work correctly;
Hardware interrupts with a vector of 0xFF are now handled correctly;
OPTi 495SX boards no longer incorrectly have 64 MB maximum RAM when 32 MB is correct;
Fixed VNC keyboard input bugs;
Fixed AT RTC periodic interrupt - Chicago 58s / 73f / 73g  / 81 MIDI play no longer hangs with the build's own VTD driver;
Fixed mouse polling with internal mice - Amstrad and Olivetti mice now work correctly;
Triones ATAPI DMA driver now correctly reads a file at the end of a CD image with a sectors number not divisible by 4;
Compaq Portable now works with all graphics cards;
Fixed various MDSI Genius bugs;
Added segment limit checks and improved page fault checks for several CPU instructions - Memphis 15xx WINSETUP and Chicago 58s WINDISK.CPL no longer issue a GPF, and some S3 drivers that used to have glitches, now work correctly;
Further improved the 808x emulation, also fixes the noticably choppy sound when using 808x CPU's, also fixes #355;
OS/2 installer no logner locks up on splash screen on PS/2 Model 70 and 80, fixes #400.
Fixed several Amstead bugs, GEM no longer crashes on the Amstrad 1640, fixes #391.
Ported John Elliott's Amstrad fixes and improvement from PCem, and fixed the default language so it's correctly Engliish, fixes #278, fixes #389.
Fixed a minor IDE timing bug, fixes #388.
Fixed Toshiba T1000 RAM issues, fixes #379.
Fixed EGA/(S)VGA overscan border handling, fixes #378;
Got rid of the now long useless IDE channel 2 auto-removal, fixes #370;
Fixed the BIOS files used by the AMSTRAD PC1512, fixes #366;
Ported the Unicode CD image file name fix from VARCem, fixes #365;
Fixed high density floppy disks on the Xi8088, fixes #359;
Fixed some bugs in the Hercules emulation, fixes #346, fixes #358;
Fixed the SCSI hard disk mode sense pages, fixes #356;
Removed the AMI Unknown 386SX because of impossibility to identify the chipset, closes #349;
Fixed bugs in the serial mouse emulation, fixes #344;
Compiled 86Box binaries now include all the required .DLL's, fixes #341;
Made some combo boxes in the Settings dialog slightly wider, fixes #276.
2019-09-20 14:02:30 +02:00
OBattler
c1f18d9abc More 808x fixed - fixed (kind of) the 8086 lock ups and the DRAM refresh wait states, also further fixed (and cleaned up) prefetch queue operation, applied a few warning fixes, and fixed the behavior of PUSH SP - anything that uses it to tell 808x apart from 286 is now fixed;
Re-added the higher-clocked 8088's;
Fixed PIT timings for 808x CPU's that don't run off an 14.3 MHz crystal;
Fixed CGA cursor half blink rate setting - fixes insane cursor blinking speed in several cases;
DMA now issues DMA refresh DRAM states on every channel;
Gave the 1982 years to the previously emulated PC and XT's names, and added the 1981 IBM PC and 1986 IBM XT;
Redid the PPI DIP switch redout for the PC/XT keyboard controller;
Fixed a segmentation fault in hdc_ide.c that tended to occur on hard reset after switching machines;
Implemented the port 3B8 color disable on the Hercules, Hercules Plus, and Hercules InColor cards;
Fixed the joystick configuration dialog strings;
Fixed a problem that would have prevented win_sdl.c from compiling with logging enabled.
2019-02-11 01:33:15 +01:00
OBattler
46d0ed2baa Rewritten 808x CPU emulation core based on reenigne's XTCE, VisiOn, SnatchIt, and 8088 MPH now work correctly;
Fixed PC speaker sound volume in PIT mode 0;
A few CPU emulation clean-ups;
Hard disk controller changing redone in a less messy way;
Re-added the long-missing key send delay handling to the XT keyboard handler;
Fixed a bug that was causing SLiRP not to work when compiled with MingW/GCC 7.3.0-2 or newer;
Some serial mouse and port fixes;
A lot of changes to printer emulation, mostly based on DOSBox-X;
Printer PNG writer now uses statically linked libpng;
Added support for the HxC MFM floppy image format and upped 86F format version to 2.12;
Ported various things from PCem and some from VARCem;
Added the S3 86c801/805 emulation (patch from TheCollector1995);
Fixed and renamed the EGA monitor options;
Better synchronized the 808x to the PIT and the CGA;
Fixed the CGA wait state calculation;
Cleaned up some things in mem.c;
Fixed some things in the floppy emulation to make VisiOn get the correct errors from the copy protection disk;
Fixed several renderer-related bugs, including the SDL2 renderer's failure to take screenshots;
The Jenkins builds are now compiled with MingW/GCC 7.4.0-1 and include all the required DLL's.
2019-02-06 03:34:39 +01:00
OBattler
7b1a40164e Added AMI and MR 386SX and 486 clones using the same BIOS already used for the 386DX (same way we did for the Award already), the old AMI 386SX clone is now AMI Unknown 386SX (because we have no idea what chipset the BIOS is for), and the old AMI 486 clone is now the AMI ALi 1429. 2018-11-02 21:02:04 +01:00
OBattler
cfc626f111 Change to logging - when logging is disabled, the logging functions are now #define'd to nothing, so the compiler ignores the lines that call them completely, seems to slightly speed up the emulator; note that the logging in vid_table.c has not been changed yet, because this file on my local tree currently contains other WIP changes. 2018-10-19 00:39:32 +02:00
OBattler
647d78e4c2 Removed a lot of useless #include's from a lot of files and reworked the SCSI #include's a bit to resolve the problem of scsi.h being a mess. 2018-10-02 22:54:28 +02:00
OBattler
4b64212b35 Added the Jetway J656VXD (430VX-based Award PCI machine);
Moved the IBM PS/2 Model 70 Type 4 to the DEV branch.
2018-09-12 14:42:13 +02:00
TC1995
1d79b67528 Applied Greatpsycho's headland chipset patches to the main branch plus the Korean ET4000AX.
Applied newer patches of John Elliot's Toshiba T1000/T1200 implementation.
Added Trigem 286M and AMA932J motherboards.
2018-08-16 00:25:20 +02:00
OBattler
5d8deea63b Changes to logging - nothing (other than some parts of pc.c) uses the global pclog anymore (and logs will be almost empty (until the base set logging flags is agreed upon);
Fixes to various hard disk controllers;
Added the Packard Bell PB640;
Fixed the InPort mouse emulation - now it works correctly on Windows NT 3.1;
Removed the status window and the associated variables;
Completely removed the Green B 486 machine;
Fixed the MDSI Genius;
Fixed the single-sided 5.25" floppy drive;
Ported a CPU-related commit from VARCem.
2018-05-21 19:04:05 +02:00
OBattler
cb53faacb2 Fixed the IBM PS/2 Model 70 Type 3 and 4 ROM sizes. 2018-03-16 06:53:54 +01:00
TC1995
0b02fc37bc Ported the most relevant PCem commits to 86Box. 2018-03-11 18:26:44 +01:00
OBattler
9356ae8bed Moved the MR Intel Advanced/ATX to the Dev branch. 2018-03-06 00:51:48 +01:00
OBattler
41646999b4 Fixed SPC4216-P;
The CL-GD 5428 and 5429 are no longer available on XT machines;
ATI Korean VGA is now actually on the video cards list.
2018-03-03 00:46:10 +01:00
OBattler
a7515042c4 Fixed the Toshiba T1000, T1200, and Xi8088;
If device initialization files and the device has a name, the name of the device is logged;
Fixed path of the OTI-037c BIOS;
The ATI Mach64GX ISA is now AT-compatible only;
The CL-GD 5428 and 5429 ISA are now available on XT machines.
2018-03-03 00:02:21 +01:00
OBattler
99d22c3c03 Added the Xi8088. 2018-03-02 20:47:18 +01:00
OBattler
b7120def92 Added the GW-286CT GEAR, Samsung SPC-4216P, and KMX-C-02 (SCAT machines). 2018-03-02 20:03:33 +01:00
OBattler
6e823e6232 Added the Toshiba T1000 and T1200. 2018-03-02 19:33:02 +01:00
OBattler
22e1b2f83a Added ATI Korean VGA, based on PCem patch from greatpsycho. 2018-03-02 18:33:22 +01:00
OBattler
086a786f12 The code in rom.c now also loads the MDSI Genius font. 2018-02-05 20:32:49 +01:00
OBattler
cc7579b898 Moved the two Laser XT machines to the Dev branch. 2018-01-28 17:56:32 +01:00
OBattler
cf6023aed2 Various fixes needed to fix the two Laser XT boards. 2018-01-25 22:36:24 +01:00
OBattler
b7501e3b5f Fixed the last compile-breaking mistakes. 2018-01-01 03:40:59 +01:00
OBattler
23c536f5dd Split off the AMD SYSCALL and SYSRET instructions to x86_ops_amd.h;
Moved the two 440FX board along with the Pentium Pro and Pentium II CPU's to the Dev branch;
Applied the PCem commit that fixed PIIX IDE Bus Master initialization.
2018-01-01 02:57:39 +01:00
OBattler
a8be9c22e9 Moved the Compaq Deskpro 386 to the Dev branch. 2017-12-31 21:59:27 +01:00
OBattler
d9e7f0c4fc Renamed the Paradise WD90C11 Standalone to Paradise WD90C11-LR and made it use the correct BIOS;
Added the Paradise PVGA1A (standalone) and the Paradise WD90C30-LR, both with configurable video memory;
Added the Toshiba T3100e.
2017-12-31 06:37:19 +01:00
OBattler
8a9204aa1f Moved the Compaq Portable III and Portable III 386 to the Dev branch;
Added both variants of the Compaq CGA, based on John Elliott's PCem patch;
The Compaq Portable is no longer set to a fixed graphics card.
2017-12-29 03:01:19 +01:00
OBattler
ac90896074 Fixed the last compile-breaking mistakes. 2017-12-25 18:16:16 +01:00
waltje
90c13dd25f Added new machine (4GPV31) 2017-12-04 14:50:58 -05:00
waltje
1e470fe49d Restored Compaq Portable II and III machines, changes by TheCollector1995. Good job! 2017-11-11 16:03:24 -05:00
waltje
f65e8c3110 Fixed the mouse-off-by-one error on Windows version.
Added ROM ID's for Compaq Portable II et al, pending TheCollector1995's patch to add those machines back.
2017-11-11 01:38:18 -05:00
waltje
df6183472c More updates for Amstrad. Note the ROM file names have changed (slightly.) 2017-11-09 21:04:55 -05:00
waltje
7c67e867c8 Major commit, cleaning a lot of old stuff.
IBM.H is gone, video stuff re-organized. Keyboard stuff reorganized.
Machines that have their own video, mouse and/or keyboard now have all this in their machine file.
Fixed and other cleanups here and there.
2017-11-05 02:00:50 -05:00
waltje
0565bf76af More cleanups. Lowercased all BIOS ROM filenames. Added ISA Cirrus-Logic to the video card table. 2017-11-01 01:51:55 -05:00
waltje
1d60a99ea3 Another major change round. VNC moved to top level. More cleanups of global data, all VM processing now handled in pc.c (out of the platforms, yay!), and some video cleanups. This build MAY have issues with window sizes, resizing, and fullscreen will not work until the next build- sorry. 2017-10-19 04:28:59 -04:00
waltje
7f24ba9fe9 Another cleanup run. 2017-10-17 02:01:03 -04:00
waltje
c1abfe2362 Another cleanup. VNC now has fixed blitters, so 8bit cards (vga,mda,herc et al) work. More cleanups with the %ls stuff, cleanup of threads modules, and MOVED THE MAKEFILE to win/. 2017-10-14 20:04:42 -04:00
OBattler
2792da5432 Refactored AHA-154x and BusLogic emulation and made them use a common core;
Fixed AHA-154x scatter/gather transfers;
Two-phased SCSI read-direction commands;
Made scsi_bus.c use a dynamically malloc'd buffer instead of a giant fixed-size buffer;
The AHA-154x/BusLogic thread now uses mutexes;
The BusLogic BT-545C is now the BT-545S;
Added the BusLogic BT-542BH;
The AHA-1542CF now again uses the v2.11 BIOS as the CD booting now works;
Applied PCem commit that adds NMI support to the recompiler;
Applied PCem commit that adds the IBM XT 286;
Applied PCem commits that have to do with sound, including the ES1371;
Fixed the NCR5380 output data register;
Moved the SLiRP mutex stuff from win.c to the appropriate network files;
Added sanity checks to everything in win_thread.c.
2017-10-14 07:03:19 +02:00
waltje
e9bd160ad1 More general cleanups and bugfixes. 2017-10-13 02:45:04 -04:00
waltje
724e5c44df More cleanups to separate main code from platform support and UI support, plus a few bugfixes. 2017-10-12 14:26:28 -04:00
waltje
5be5a38db6 ROM loading typos fixed, MIDI typo fixed, some warnings fixed. Still messing with the ROM on some PS/2 models not working. 2017-10-10 18:49:34 -04:00
OBattler
1af4ffc706 Attempt to fix ROM loading for non-motherboard ROM's loaded at segment:8000. 2017-10-01 18:39:20 +02:00
waltje
e8899c30c1 Fixed black screens - have to only look at the lower 256K of a ROM's load address. 2017-09-30 19:56:13 -04:00
waltje
c62e0b923c More ROM BIOS sizes fixed, thanks altheos! 2017-09-29 03:48:46 -04:00
waltje
f58afc4801 Fixed IBM-PC/AT ROM BIOS image size. 2017-09-27 14:10:11 -04:00
waltje
7340039367 More cleanups in rom.ch, we now have one set of routines that actually process ROM image files. 2017-09-25 20:49:16 -04:00
waltje
43b055b5ee Another massive cleanup run. Ibm.h no longer includes system header files. ROM loading simplified, and moved from mem.c to rom.c. Fixes in Makefile. Corrected mamy wrong includes. Removed old junk from days long gone. First phase of new SCAT chipset driver - no longer gives errors in BIOS, but NOT DONE YET. 2017-09-25 04:33:16 -04:00