1
0
Fork 0
Commit graph

4198 commits

Author SHA1 Message Date
Peter Veenstra
ea4dd721b5 use decoded modrm instead of raw value. so we don't need to store it.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4207
2019-04-19 17:05:47 +00:00
Peter Veenstra
dc6a76d354 Store whether generated code is 16 or 32 bit, so this information can be used when checking for self modifying code. Some code is identical except for being 32 or 16 bit. Fixes some hard to reproduce problems (with small codeblocks). Thanks jmarsh!
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4206
2019-04-19 12:16:14 +00:00
Peter Veenstra
ee2d3e73ce Unify unmounting code. Fix unmounting of complex drives where parts were left and file pointers were kept open. (thanks jmarsh)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4205
2019-04-11 15:48:04 +00:00
ripsaw8080
8688dc9702 Add IBM signature in EGA video BIOS for compatibility. Fixes EGA detection in 221 B Baker Street. Also include trailing space in signature in case it is checked with word values.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4204
2019-04-08 21:13:00 +00:00
Peter Veenstra
c03a6f497c We use the old style headers in other places and use the functions/types without std::
Should help compilation on FreeBSD.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4203
2019-04-06 17:02:40 +00:00
Peter Veenstra
111fa1d45b Check lengths before adding C style strings together. Fixes #498
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4202
2019-04-03 10:31:52 +00:00
ripsaw8080
3978e05909 Improve prefetch and simple cores to not switch to normal core on trap execution. Fixes the demo version of Prehistorik 2 and similar cases that use the trap flag and prefetch tricks. Thanks NewRisingSun.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4201
2019-04-01 22:06:11 +00:00
Peter Veenstra
687e3cf058 Ensure room before adding environment variable using set. Noted when running a subshell under NC.
Bug left: we don't have a lot of environment space in that case (not the 160 minimum).


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4200
2019-04-01 16:50:49 +00:00
Peter Veenstra
4a1ef4d3d7 Refine stack overflow and underflow for the fpu a bit.
Overflow is still treated as Exit.
Underflow is ignored in release mode as it happens every now and then and doesn't seem to cause issues if ignored, thus restoring 0.74 behaviour.



Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4199
2019-04-01 14:32:18 +00:00
Peter Veenstra
c9c97f13af Correct bug related to signedness (M-HT).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4198
2019-03-31 18:06:27 +00:00
Peter Veenstra
94113a7362 Change multi_remain to repeat last parsed value for non-string types if the next value is empty and of the same type as the last.
Use this to add an optional parameter to sensitivity which controls the y axis. When optional parameter is missing, x and y axis have the same value.
Change limits on sensitivity to allow for negative values so the Mouse Y-axis can be inversed. Similar to patch #276.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4197
2019-03-29 20:47:57 +00:00
Peter Veenstra
202bfa1155 New Drive type: overlay.
When active, this drive redirects new and changed files to a different location.
The files in the overlay and normal drive are merged on startup and kept up to date when the game changes something. 
Files in the overlay are priotizedi, if they exists, above the normal files. 
The drive will switch to an overlayed version of the file on the first write! (Not when opening the file in write-mode).
The overlay is capable of creating missing directories.

With the help of DBOVERLAY files, the drive keeps track of files that are present in the normal directory but deleted by the game. 
All changes are preserved between sessions. 

Current design principles/limitations/requirements:
1) All directories that can be used for saving, must exist already in the base before mounting. (they will be created by DOSBox if missing in the overlay)
2) All filenames inside the overlay directories are UPPERCASE and conform to the 8.3 standard except for the special DBOVERLAY files.
3) To keep point 1 valid at all times, support for creating/renaming/removing directories has been disabled.

Thanks for the help GOG.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4196
2019-03-25 13:49:25 +00:00
Peter Veenstra
d137ec5c0d Fix up DOS_Drive_Cache::GetShortName, used by overlay drive.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4195
2019-03-21 15:56:15 +00:00
Peter Veenstra
8d1c5b31e1 fix loading of configfiles specified with -conf but present in the userdir with -userconf present.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4194
2019-02-28 13:14:21 +00:00
Peter Veenstra
a3635e22af Repair double slash in configfile location on Macs. Add some protection against a NULL dirp.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4193
2019-02-28 13:03:22 +00:00
ripsaw8080
7f7e5f34ac Ignore unrequested data in intelligent mode; fixes Roland sound in Krusty's Fun House.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4192
2019-02-21 14:53:31 +00:00
ripsaw8080
45f28b12bd Only standard 3-byte mouse data packets are supported, so return an error for other packet sizes. MS Mouse driver versions 9.X and later use 1-byte packets for some obscure reason, and now they won't load instead of messing up.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4191
2019-02-04 15:27:26 +00:00
ripsaw8080
88bc1944e8 Reset followed by switch to UART mode should take some time; fixes MPU detection in F29 Retaliator and Hover Force. Also minimize reset delay, which helps with MPU detection at higher cycles in games that prefer less delay, such as Bureau 13.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4190
2019-02-04 15:18:49 +00:00
ripsaw8080
4d35f0ef27 Correct relative track length in subchannel data for CD-ROM images; fixes speech audio cutting off too soon in Casino Tournament of Champions.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4189
2019-02-04 15:16:55 +00:00
ripsaw8080
64d25c4be4 Acknowledge mouse interrupt before entering user routine; fixes sound stutter during mouse movement in Eye of the Beholder III and Casino Tournament of Champions. Clear button counters in the mouse driver reset function; prevents unintended skipping of intro in MechWarrior and others.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4188
2019-02-04 15:15:58 +00:00
ripsaw8080
d4c38121c9 Implement timer 2 output on port 61h; fixes SB detection in Abaron. Also implement port 62h with timer 2 output for CGA and Hercules machine types; fixes Frank Bruno's Boxing and Math Maze.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4187
2019-02-04 15:11:50 +00:00
ripsaw8080
014326476f CMOS equipment list startup display mode bits differ from BIOS on EGA/VGA; fixes Sauro.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4186
2019-02-04 15:09:56 +00:00
Peter Veenstra
fdd8358de7 Make feature checks consistent, include right header for memset, correct one off error in paging table size compare for when not using USE_FULL_TLB (jmarsh)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4185
2019-01-28 14:26:19 +00:00
Peter Veenstra
4e88b1eb2c Do it for both read-only modi
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4184
2019-01-25 14:34:47 +00:00
Peter Veenstra
1fbaff47fc Update year and address of FSF
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4183
2019-01-25 14:09:58 +00:00
Peter Veenstra
2327f92db9 Here as well
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4182
2019-01-25 10:08:06 +00:00
Peter Veenstra
cf85eb0d9b Remove file that has not been used in a long time
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4181
2019-01-25 09:31:50 +00:00
Peter Veenstra
d55c6a03ed This order works better for when other headers change.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4180
2018-12-28 12:19:13 +00:00
Peter Veenstra
b899da315d use right field when dealing with joysticks. use enum instead of magic value (ny00123)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4179
2018-12-28 12:18:12 +00:00
Peter Veenstra
c9f79add62 no bilinearing filtering on exact multiples
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4178
2018-12-17 19:22:30 +00:00
Peter Veenstra
f5e4b9205f Add workaround for the problem of locking the mouse in windowed mode with X.org 1.20.1. (thanks to DosFreak and ny00123 for their help with testing and debugging)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4177
2018-12-11 15:45:37 +00:00
ripsaw8080
e0a7ede037 Don't generate sound after DMA is masked at end of single-cycle transfer. Prevents issues with some games.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4176
2018-11-23 21:55:12 +00:00
Sjoerd van der Berg
3bde40bc91 Make a dma channel go masked when it reaches end of count without autoinit
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4175
2018-11-19 22:02:13 +00:00
Sjoerd van der Berg
72f8544723 Make autoinit exit work and prevent double single cycle transfers when quitting autoinit
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4174
2018-11-19 18:34:49 +00:00
Peter Veenstra
9ffb5627aa Add ripsaws one line patch to fix bug 488
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4173
2018-11-17 13:29:02 +00:00
ripsaw8080
d0ecdf85b2 Allocation Info works for CD-ROM drives. Fixes Bureau 13 installer.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4172
2018-11-16 22:39:24 +00:00
Peter Veenstra
1960a815e1 Improvements for compiling dynrec core in 64 bit mode on windows. Thanks for the help PgrAm and kjliew.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4171
2018-11-16 12:40:37 +00:00
ripsaw8080
80342e104e Correct response for keyboard echo command. Fixes Steel Shot.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4170
2018-11-12 16:41:00 +00:00
ripsaw8080
3a2b3c6d57 Reset write ops after drawing text in EGA graphics modes, consistent with EGA/VGA BIOS. Fixes Fun School 3.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4169
2018-11-12 16:39:49 +00:00
ripsaw8080
07c2d06ae5 Add Unit Number and Bytes Per Sector fields for DPB entries. Fixes Air Power installer and Windows 3 Virtual Memory dialog.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4168
2018-10-11 15:05:28 +00:00
ripsaw8080
c3aca8dc44 When searching CD-ROM directory entries, strip trailing period of extension-less filenames after stripping file version number and separator. Fixes disc check in Air Power.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4167
2018-10-11 14:58:18 +00:00
Peter Veenstra
c7e6b3ca86 Report when a -conf file can not be loaded. Make spacing similar between messages.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4166
2018-10-10 07:00:53 +00:00
Peter Veenstra
f522e81d32 Quick fix for dma channel 0 having no page porthandler.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4165
2018-09-29 16:17:36 +00:00
ripsaw8080
52d5501842 Disable UMB on PCjr machine type; fixes broken MCB chain. Remove 128k PCjr faking from r2417 that was effectively disabled by r3420.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4164
2018-09-27 20:07:06 +00:00
Peter Veenstra
bfd322cff7 Make it possible to compile without png support.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4163
2018-09-21 08:53:03 +00:00
Peter Veenstra
c0d49b28e5 Change scan3x to be LINE LINE DARK instead of LINE DARK DARK. This matches pictures of scanlines better and doubles the brightness as the old implementation was rather dark.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4162
2018-09-14 19:59:05 +00:00
Peter Veenstra
2f09b52de8 Fix typos reported by lintian and change DosBox to DOSBox.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4161
2018-09-14 19:53:55 +00:00
Peter Veenstra
1ff6911b3c Let all multiline comments jump in. Pretty up value blocks
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4160
2018-09-04 13:51:09 +00:00
ripsaw8080
5dfa75399e Show segment override on XLAT instruction.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4159
2018-09-04 12:58:09 +00:00
Peter Veenstra
bece575aff Fix compilation
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4158
2018-09-04 09:43:50 +00:00