Commit Graph

118 Commits

Author SHA1 Message Date
OBattler
2fe6ea0e64 Fixed the EEPROM/registers array size mess in the AdLib Gold code. 2020-01-15 00:32:52 +01:00
OBattler
1b7da93aa3 Fixed a minor bug in the MPU-401 code. 2020-01-14 19:11:40 +01:00
Melissa Goad
59b31a0232 Fix adding a sound card 2020-01-12 13:47:42 -06:00
OBattler
4b7401c3b5 Merge branch 'feature/midi_in' into gus 2020-01-12 18:51:35 +01:00
TC1995
e0be29af06 Fixed GUS MIDI Out. 2020-01-10 12:33:20 +01:00
Altheos
219afed4df Rebase on upstream midi_in branch 2020-01-10 10:49:59 +01:00
TC1995
405030abd4 Made MIDI Input reset properly with midi data set to 0xaa (required by the GUS Installation MIDI IRQ tests) and initialize with data set to 0x00 when a master reset is not used (required by midi input from Sound Club). 2020-01-10 01:13:38 +01:00
Altheos
26eeb9bfc5 Merge branch 'feature/midi_in' of https://github.com/86Box/86Box into gus 2020-01-08 19:10:14 +01:00
TC1995
04931767e7 Fixed compile error. 2020-01-08 19:05:21 +01:00
OBattler
c524a62c40 Fixed an intance of undefined behavior in sb_mpu401.c. 2020-01-08 19:01:24 +01:00
Altheos
1649430bce Merge branch 'feature/midi_in' of https://github.com/86Box/86Box into gus 2020-01-08 18:52:16 +01:00
Altheos
3bdec705e5 GUS soundcard improvements :
IO address flexibility
256kb, 512kb or 1Mb total memory variant
2020-01-08 18:26:24 +01:00
TC1995
bb4e4e10c3 Added Gravis Ultrasound MIDI Input. 2020-01-08 17:11:13 +01:00
OBattler
f7ffe8a247 Fixed coding style and IRQ handling per the spec.
Also made commands other than 0xFF ignored in UART mode, also per the spec.
2020-01-04 03:32:20 +01:00
TC1995
e8dd8c3774 Fixed midi input code. Currently only MPU401 (standalone) and SB cards have MIDI Input capabilities, es1371 and GUS will be done for a later time. 2020-01-02 18:19:22 +01:00
TC1995
9562a20a63 Initial commit of MIDI IN. 2020-01-01 20:20:16 +01:00
OBattler
51b06be28c Removed DOSBox OPL code, and made NukedOPL, the CD-ROM image code (incl. former cdrom_dosbox.cpp/h), and Raw Input mouse code C instead of C++, and fixed OPL2 emulation with NukedOPL. 2019-12-21 20:06:34 +01:00
OBattler
ccd1a8dde2 Cleaned up the Sound Blaster DSP code. 2019-12-21 20:03:07 +01:00
OBattler
a838e8548f PIT rewrite. 2019-12-02 07:05:12 +01:00
OBattler
fa4890c9db Some fixes to the PC speaker - fixes amplitude in mode 1 (the intro of Perestroika now works correctly at least on the 8088 4.77 MHz) and makes the parameters consistent with the rest of the PC speaker emulation. 2019-11-11 06:07:50 +01:00
OBattler
d79f25c56c Gravis UltraSound fixes, should no longer make the emulator stop responding. 2019-11-01 03:55:43 +01:00
OBattler
5f5da6fe11 OpenAL bug fixes, fixes all OpenAL run-time warnings and errors. 2019-10-31 22:20:29 +01:00
OBattler
c06ff7f76c Fixed for the array sizes in snd_dbopl.cc. 2019-10-30 18:01:23 +01:00
OBattler
22d4010a04 Removed an incorrect extra shift by 4 from three CT1345 mixer compatibility registers, fixes #340. 2019-09-27 13:33:39 +02: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
John Sirett
e72e686254 Fix CD volume issue present on SB cards. 2019-04-27 20:39:17 +01:00
driver1998
fecbec13cf Use _M_IX86 and _M_X64 to indicate MSVC x86/x64
_WIN32 is defined on ARM MinGW as well, which breaks current assumptions
2019-03-20 02:00:12 +08: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
9f2b917661 Fixed a bug in sound.c that was causing the Dev branch to fail compiling. 2019-02-06 03:38:54 +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
e73ccc2e4a Changes to handling of seconary IDE controller when it is optional. 2018-11-09 09:50:35 +01:00
OBattler
3a8bd15b9d Extensive rework of SCSI and ATAPI devices and numerous bug fixes and cleanups;
Extensive rework of CD-ROM image handling;
The settings save code now forces some devices' (SCSI disk, CD-ROM, etc.) pointers to NULL before resetting the machine - fixes segmentation faults after changing settings;
Added the NCR 53c825A and 53c875 SCSI controllers;
Fixed IDE/ATAPI DMA;
Slight changed to PCI IDE bus master operation.
2018-10-30 13:32:25 +01:00
OBattler
96b894f7b8 Fixed some compile-breaking bugs. 2018-10-26 04:54:04 +02:00
OBattler
5641519d5f Slight sound cleanups. 2018-10-26 04:05:29 +02: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
c663147d11 Imported CD-ROM-related changes from VARCem;
Removed cdrom_null.c/h;
Some changes to logging (will be spread to everything else soon).
2018-10-17 05:29:48 +02:00
OBattler
6155802b59 Split generic CD-ROM from SCSI-style CD-ROM;
Redid the way SCSI and ATAPI devices are handled;
Slight timings change in the NCR 5380;
Devices are now closed by device_close_all() in the reverse order of the one in which they were started;
Slight changes to some code in win/;
Added the WM_HARDRESET and WM_SHUTDOWN window messages for configuration manager purposes.
2018-10-10 22:33:24 +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
4e7d0e5b6b MPU-401 read data now clears IRQ in UART mode if it was pending, fixes stuck pending MPU-401 IRQ (and broken wave audio). 2018-09-15 20:17:13 +02:00
OBattler
61a5999169 Changed one thing in snd_mpu401.h. 2018-09-11 23:13:28 +02:00
OBattler
c588575dbe Standalone MPU-401 now actually gets initialized whenever it's enabled. 2018-09-11 23:08:51 +02:00
OBattler
12c85dd2e6 Removed excess sb_dsp_set_mpu() calls, and fixed some bugs. 2018-09-11 22:56:11 +02:00
OBattler
8f5378ea32 Added the ability to disable the MPU-401 of the Sound Blaster 16/AWE32, just like the real card allows. 2018-09-11 22:51:36 +02:00
OBattler
b316a90bae The ISA standalone MPU-401 is now identified as the Roland MPU-IPC-T. 2018-09-11 22:46:11 +02:00
OBattler
0ea3a1307c Fixed the MCA MPU-401 and gave it its correct name;
Sound Blaster 16/AWE32 MPU-401 is now always the less-functional variant like it would be on real hardware and its IRQ is always shared with the sound card;
Standalone MPU-401 is now always the fully functional intelligent mode variant;
Standalone MPU-401 is now always available, even when Sound Blaster 16/AWE32 is in use;
Cleaned up sound/midi.c and win/win_midi.c.
2018-09-11 22:41:14 +02:00
OBattler
ea5a226a97 Brought the ISA memory card emulation and some other things up to par with VARCem and fixed the ISA memory card configuration. 2018-09-06 14:38:43 +02:00
OBattler
9a180ed33c The MPU-401 no longer issues IRQ's when in UART mode, even when started up intelligent mode, fixes MIDI playback in NT 3.5. 2018-09-04 13:45:48 +02:00
OBattler
90aac0e75a Disabled excess MPU-401 logging. 2018-09-04 13:30:09 +02:00
OBattler
9e4b534c54 Added an option to make MPU-401 use the Sound Blaster 16 (or AWE32)'s IRQ and made its IRQ pending status reflected in the SB16 IRQ source register, fixes MPU-401 detection in Windows NT 3.5. 2018-09-04 13:26:07 +02:00
TC1995
0d2ee0a57d Ported the ISA RTC and Memory expansion cards from VARCem's.
Bunch of improvements in the device, memory and MMU handling.
Re-worked the NEAT 286 chipset (ported from VARCem).
Re-worked the ATI 28800 a bit, added Sierra SC1502x ramdac to VGA Wonder XL (Compaq) since it supports such.
Top 384K memory handling improvements (256K top memory too)
Added MCA version of MPU-401 (not tested much, however).
Re-worked the SCAT 286 chipset.
2018-09-03 13:55:09 +02:00