Commit graph

435 commits

Author SHA1 Message Date
TomW
673d785743 Writing to a memory page with code present only causes code block flushes if the data changes, or if a block is currently being recompiled. 2016-02-03 21:09:05 +00:00
TomW
f7e4a0f32e Fixed crash on XT models when accessing unmapped areas 2016-02-01 20:57:18 +00:00
TomW
b38a3fd838 Fix overflow and scaling in Linux 8-bit blitting code. 2016-02-01 20:44:48 +00:00
TomW
2bc2bbc939 Cached results of MMU lookup in get_phys(). 2016-01-27 21:05:28 +00:00
TomW
20c3415202 Reworked TVGA banking. Fixes some Windows 3.x drivers. 2016-01-23 18:01:03 +00:00
TomW
50dfd8b7a5 Moved mem_add_bios() call to model code. Fixes Intel Flash. 2016-01-23 15:21:33 +00:00
TomW
38fb86cb95 stack32 is now always 0 or 1, to prevent failed comparisons in 386_dynarec.c.
Only clear an entry in codeblock_hash if it's pointing to the block actually being deleted.
Speeds up menus in Railroad Tycoon II significantly.
2016-01-23 14:36:59 +00:00
TomW
39c95ee0af Moved BIOS mapping initialisation - SiS 496/497 now boots again without requiring hard reset. 2016-01-17 20:57:30 +00:00
TomW
c0b136248a Add -mstackrealign to Makefile.mingw. 2016-01-15 22:08:08 +00:00
TomW
7b5766598e Fixed typo in cpu.c when initialising FPU dynarec opcode tables for 486SX CPUs. 2016-01-15 20:10:44 +00:00
TomW
4846e66fd7 Fixed typo in PIT structure. 2016-01-15 20:10:08 +00:00
TomW
231be4ce0e Fixed Voodoo rendering when integer and floating point coordinates are mixed - fixes HUD in Starsiege Tribes, map in NFS II SE and NFS III. 2016-01-14 21:49:36 +00:00
TomW
0601d2d919 Fixed clamping of T coordinate in Voodoo recompiler - fixes lightmaps in Starsiege Tribes 2016-01-14 20:41:34 +00:00
TomW
1b2f58326e Update ViRGE mapping on writes to PCI command register - fixes text console in Debian 5.0. 2016-01-13 20:47:58 +00:00
TomW
e69c41d0d6 Fixed 3DFX recompiler on Linux 2016-01-12 21:28:53 +00:00
TomW
0d1d018e80 Fix Linux port. Update Linux GUI. 2016-01-12 20:54:30 +00:00
TomW
f6d6f0de9b Added 3DFX recompiler for x86-32. 2-4x speedup over previous code. 2016-01-12 19:37:01 +00:00
TomW
928e76bccc Added socket 4/5 Pentium OverDrive CPUs.
Added seperate array of socket 5 Pentium CPUs.
Patch from Battler.
2016-01-05 19:59:41 +00:00
TomW
4a0ece4e75 Added 8088/8086 instruction aliases. Patch from Battler. 2016-01-04 20:47:28 +00:00
TomW
e82fd502c1 Implemented another SN76496/NCR8496 difference - latter can not update noise register on write with top bit clear. 2015-12-18 21:06:01 +00:00
TomW
64454dded2 Added CD-ROM .ISO support. Patch from RichardG867.
Minor cleanup to CD-ROM handling.
2015-12-15 21:09:00 +00:00
TomW
eebdc165b2 FDC changes :
- Seperated disk and disk drive emulation
- Support more drive types - 5.25" dual RPM, 3.5" DD, 3.5" HD, 3.5" HD 3-Mode
- Support drive swapping (FDC37c665 only)
- Support FDC FIFO
- Support other FDC 'enhanced mode' behaviour
- Support IBM XDF format images
- Formatting now formats both tracks, and uses correct 'fill' byte
- Various other improvements

Many of these changes provided by Battler
2015-12-12 16:31:08 +00:00
TomW
2ca86ba028 Added support for Tandy 1000 HX and SL/2. As part of this commit :
- FDC now selects drive number from DOR (0x3f2)
- FDC now fails seeks on drives > 1
- XT systems no longer have BIOS mapping at E0000-EFFFF
- SN76489 now distinguishes between SN76496 (PCjr and early Tandy 1000), NCR8496 (later Tandy 1000 - different noise handling) and PSSJ
- Removed redundant limits on memory configuration - allows selection of 768k for Tandy 1000 SL/2
2015-12-03 21:48:10 +00:00
TomW
79202cc5c0 Changed timer base frequency on XT models to 14.318MHz - PIT, CGA and 4.77MHz CPU should now stay in perfect sync. 2015-11-25 21:50:38 +00:00
TomW
0b06c15ae5 Added missing SETALC instruction to 808x.c 2015-11-25 21:25:21 +00:00
TomW
3d35442da7 Removed duplicate PIT counting from 808x.c - fixes some timing issues with XT machines. 2015-11-25 21:25:01 +00:00
TomW
ccd502719b Added clipping to DirectDraw blit function. 2015-11-25 21:23:33 +00:00
TomW
f17c9dbb22 PSG noise latch only reset on change of noise type, not on any noise control write (not sure if this change is strictly correct).
Tweaked noise frequency.
Fixes noise in Zak McKracken.
2015-11-24 20:47:49 +00:00
TomW
1129e1c630 PSG period 0 now handled as 1024 - fixes bassline in Zak McKracken. 2015-11-24 20:46:37 +00:00
TomW
96ef9f6259 Tandy PSG is mirrored at ports 0xc1-0xc8. 2015-11-24 20:44:41 +00:00
TomW
7b7e9139aa Fixed Tandy memory configurations less than 640kb. 2015-11-22 21:11:31 +00:00
TomW
ffae0f5caa Fixed Mach64 Y coordinate when tiling enabled. 2015-11-20 20:59:37 +00:00
TomW
24e6c2555e Added Mach64 polygon command. 2015-11-20 20:59:12 +00:00
TomW
37a6f796de Fix crash on loading with invalid mem_size values in config. 2015-11-19 19:44:38 +00:00
TomW
92a53df150 Clip Mach64 drawing coordinates to 12-bit - fixes issues with some Win9x drivers. 2015-11-18 21:19:46 +00:00
TomW
f1fd9ddc18 Fixed Mach64 15-bit mode. 2015-11-18 20:47:14 +00:00
TomW
c47df21a82 XT models can now have less than 640kB RAM. 2015-11-18 20:28:57 +00:00
TomW
e9bea8ab7e Added recompiled versions of PUSH [mem], PUSH seg, NOP, CLD, STD, JMP indirect, CALL indirect. 2015-11-17 20:52:51 +00:00
TomW
d76da7de70 FDC read address command now uses drive current track rather than FDC current track, fixes 360k discs in 1.2M drive in Windows 9x. 2015-11-15 14:44:52 +00:00
TomW
d3c2d455b9 Improve FDC reset handling. Fixes floppy access in Windows 9x. 2015-11-15 14:08:39 +00:00
TomW
b459fc9815 High PC speaker frequencies treated as constant level.
Improved timing for port 0x61 writes.
2015-11-14 18:14:32 +00:00
TomW
22f20e3595 Fixed typo that broke 8088 timing. 2015-11-13 20:51:10 +00:00
TomW
c45a33a97f Corrected size of Advanced/EV BIOS. Patch from ecksemmess. 2015-11-13 20:44:46 +00:00
TomW
4464ef0afc Fixed PIIX code broken in rev 385. 2015-11-07 12:13:07 +00:00
TomW
fa7e77b013 Fix Linux configure/makefile. Bump version number up to v10.1. 2015-11-07 11:19:29 +00:00
TomW
67dea77677 Added command line option to specify config file to use on startup. 2015-11-06 21:23:46 +00:00
TomW
79bf197d34 Don't create Voodoo memory dump in release build. 2015-11-02 18:06:34 +00:00
TomW
8e9adf91de Added command line option to start in fullscreen mode. 2015-11-02 18:05:23 +00:00
TomW
4f46befaff Removed redundant memcpy from rev 385. 2015-11-02 18:04:58 +00:00
TomW
685d6f2c33 Add range checks to PIIX read/write functions. 2015-10-31 18:35:56 +00:00