1
0
Fork 0
Commit graph

4163 commits

Author SHA1 Message Date
ripsaw8080
8a464fb312 Amend previous Hercules change so the MDA-compatible address wrapping is used only when graphics are disabled, but still only in 32kB mode. Thanks TheGreatCodeholio, and thanks Great Hierophant for testing on a real Hercules card.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3903
2015-03-13 12:42:12 +00:00
ripsaw8080
bd6e01565d Amend previous MSCDEX change to use presence of cdrom device to determine the installed condition, which means unmounting will not revert to the uninstalled condition. Pass unhandled functions back to the multiplex handler, which if nothing else will generate log messages about them being unhandled.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3902
2015-03-13 12:35:30 +00:00
Peter Veenstra
0b568ebbd0 correct typo in the includeguards
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3901
2015-02-24 13:54:43 +00:00
ripsaw8080
c0a3903ec0 Map a single 4kB page of video memory that repeats in the 32kB range when in Hercules text mode, making it compatible with MDA. Fixes Future Wars and Operation Stealth install programs on the Hercules machine type.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3900
2015-02-11 20:45:29 +00:00
Peter Veenstra
ef7ddd1504 Use clock_gettime when available instead of the obsolete ftime.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3899
2015-02-11 19:11:31 +00:00
Peter Veenstra
81ae7277e8 Add --disable-fpu-x64 which is the same as --disable-fpu-x86 for clarity reasons
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3898
2015-02-11 18:12:36 +00:00
ripsaw8080
f458d07983 No response from MSCDEX when it's not installed/active. Allows install programs from the V for Victory series of games to work provided no cdrom drives are mounted.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3897
2015-02-11 17:46:12 +00:00
ripsaw8080
6cec6d144b Do less to update the frequency of an active SB DMA transfer, and include DSP command 0x41 (fixes SB16 sound in Tempest 2000). Handle DSP command 0x42 as unimplemented, because it is.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3896
2015-01-28 22:20:49 +00:00
ripsaw8080
3c8a5bdc95 Scan for illegal characters in directory and file names after trimming to 8.3 rather than before. Fixes Hexx and maybe others that neglect the Z in ASCIIZ.
Coalesce free memory blocks before resizing a block in case it grows; coalesce after after resizing only if the block shrinks.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3895
2015-01-28 22:19:20 +00:00
Peter Veenstra
f9c67101c7 Workaround clang confusing itself (compile error), results in a small speed up in general (thanks for helping wjp). clang compiled x64 dynrec core appears to be unstable though. (-O0 seems to help)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3894
2015-01-21 20:50:40 +00:00
Peter Veenstra
85c11c6fef Add C_DEBUG checks around C_HEAVY_DEBUG, so you can leave C_HEAVY_DEBUG defined.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3893
2015-01-14 12:31:01 +00:00
ripsaw8080
84bb06ea60 Arrange stack to restore registers when a child PSP is terminated. Fixes crashes in some demos (Blashphemy by Fatal Justice, Dreamwar by Elfsong, Mystic by Xenogenesis, et al).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3892
2015-01-10 13:47:31 +00:00
ripsaw8080
3e5241947c Mapper enhancements: Run mapper through an event to prevent crash on exit when mapper key is deleted. Display disabled items or events with no binding in grey color. Simplify joystick array init with a memset.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3891
2015-01-10 13:16:22 +00:00
Peter Veenstra
b81c813b87 Initialise all fields when constructing, fixes unintentional value reuse with Prop_multival.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3890
2015-01-09 15:00:18 +00:00
Peter Veenstra
85667fbe0f Fix the possible/suggested values for integer properties.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3889
2015-01-09 14:58:45 +00:00
Peter Veenstra
017fda9ba0 Give some hints when we are on Z:\, but not on other drives.
Always return the directory for the drive if the drive exists.
Fixes/improves bug 390.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3888
2015-01-09 10:50:17 +00:00
Peter Veenstra
401d129694 Fix bug 392.
'\0' check at the wrong place.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3887
2015-01-09 08:57:43 +00:00
ripsaw8080
933174fb3e Add support for High Sierra format cdrom images.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3886
2015-01-08 17:23:15 +00:00
ripsaw8080
56c3a4be9c Make the shell's internal run loop more like the command prompt run loop. Fixes CALLed batch files when executed in subshells, such as with Norton/Volkov Commander. Reference SourceForge bug #394.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3885
2015-01-06 18:32:47 +00:00
ripsaw8080
1acc1a459a Improve compatibility of the PCjr keyboard NMI handler by setting DS to the BIOS data segment before calling INT 9. Fixes crashes in Shamus on the PCjr machine type.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3884
2015-01-06 18:02:28 +00:00
ripsaw8080
7acd780244 Add support for M_TANDY16 to GetPixel(). Fixes text and mouse pointer drawing in Tandy graphics modes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3883
2015-01-06 17:54:58 +00:00
ripsaw8080
5fef7164a5 Coalesce free memory blocks after resizing a block rather than before. Fixes some MicroProse games on the Tandy machine type. Also add error exits in case of a corrupt MCB chain instead of hanging in an infinite loop.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3882
2015-01-06 17:48:07 +00:00
ripsaw8080
58a149deec Don't count trailing spaces when checking if path is too long. Enable all write planes in the EGA FillRow function. Fixes crash and glitched graphics in Quest Maker 2 and derived adventure games (House of No Doors, Hot Rod Harry, et al).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3881
2015-01-06 17:33:39 +00:00
ripsaw8080
d2209e10b5 Change the console device to use the DOS default attribute of 7 when ANSI is not active. Fixes glitched text in Space Pilot, and generally improves compatibility of console text output in graphics modes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3880
2015-01-06 17:16:00 +00:00
ripsaw8080
92ca5488b9 The emulated floppy drive does not use DMA, but make it look like it does when booting. Fixes CGA graphics in the Demon's Forge booter.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3879
2015-01-06 16:51:22 +00:00
Peter Veenstra
0f4c92ca32 Year update.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3878
2015-01-06 14:40:32 +00:00
Peter Veenstra
89f844c7b8 Need this quite often.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3877
2015-01-06 14:10:23 +00:00
Peter Veenstra
f06067e101 Add missing error message.
Rewrite CDRom to CD-ROM for consistency.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3876
2014-12-12 19:04:40 +00:00
Peter Veenstra
b2a6860032 Reading from NUL changed to report 0 bytes read. Prevents infinite read loops on NUL.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3875
2014-12-12 19:02:37 +00:00
Peter Veenstra
144aa917e3 Small improvement to copy when dealing with a device (fixes a warning from the drive_cache on the findnext).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3874
2014-12-12 18:59:36 +00:00
Peter Veenstra
767a95380b mirror cache handling with dynrec core with allocation stuff for 64 bit things
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3873
2014-11-21 09:38:36 +00:00
Peter Veenstra
952c48c5cf This seems to make i686-MinGW-w64 happy. Combination of patch 261 on SF.net and input on IRC
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3872
2014-11-06 18:58:14 +00:00
Peter Veenstra
0bbd0a09ec Workaround 2 issues, when starting the keymapper with output=opengl,aspect=true on windows.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3871
2014-10-14 14:54:41 +00:00
Peter Veenstra
2077da8e29 Allow the windows and menu keys to be mappable on Linux and Windows.
Fixes bug 406 on sf.net and topic 380510 on vogons.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3870
2014-10-14 14:34:48 +00:00
Peter Veenstra
730c2d3cd9 Run with -mno-ms-bitfields if the compiler supports it as the ms-bitfields are turned on by default on some hosts, but they are broken https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3869
2014-06-27 09:02:08 +00:00
ripsaw8080
544c1a2fe5 Illegal memory reads have all bits set. Fixes early (and buggy) shareware versions of Shadow Warrior.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3868
2014-06-19 18:51:42 +00:00
Peter Veenstra
d815845c60 the mapper needs to use the wrapper as well.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3867
2014-06-18 18:49:42 +00:00
Peter Veenstra
56dfdb8f9e 25*14=350
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3866
2014-06-18 15:53:05 +00:00
Peter Veenstra
fb71bc6ca8 Aspect correct text modes as well.
I hope I got the ratios right. Let me know if I messed up.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3865
2014-06-18 15:51:02 +00:00
Peter Veenstra
9cbce79ce3 reordering.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3864
2014-06-18 14:52:23 +00:00
Peter Veenstra
01a09d7086 Improve the results of the windowed resolution calculation so that the one off errors are gone.
Create a small wrapper function around SDL_SetVideoMode, so that we don't set the same mode twice. 
Both changes benefit people who record footage with external recording software and it speeds up mode video mode changes. (especially with aspect=true)


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3863
2014-06-18 14:39:49 +00:00
Peter Veenstra
37fac15aea lower the influence of the aspect table correction trick when using high scale factors (320x200 =>2000x1200)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3862
2014-06-18 14:34:33 +00:00
Peter Veenstra
a59544bf7d Add Exit conditions for stack over/underflows
It's bad to continue when these states happen. Let's see if a game triggers it.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3861
2014-06-18 14:32:40 +00:00
Ralf Grillenberger
bb807af8c7 Use PCJr specific method to clear the video RAM. Also don't scroll at unspecified video page. Fixes issues with KQ1 and KQ2.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3860
2014-06-09 19:07:14 +00:00
Ralf Grillenberger
7f00bd4b34 Implement VGA memory wrapping for the wrapping line also in vgaonly rendering. Fixes black line in Keen.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3859
2014-06-08 00:00:53 +00:00
Peter Veenstra
ee0367653b stdprn is now really prn and you can't read from it. Fixes a weird runtime that reads the PRN handle.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3858
2014-01-12 13:43:47 +00:00
Peter Veenstra
14ac0f241f Stop rethrowing the error, as SDL doesn't know what to do with it anyways. Fix a couple of formatting related warnings/errors.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3857
2014-01-12 13:41:01 +00:00
Peter Veenstra
7c25fb4684 reg_eip is 32 bit(jmarsh)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3856
2014-01-12 12:54:58 +00:00
Peter Veenstra
3ddbfe949a fpu.sw is 16 bit(jmarsh)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3855
2014-01-12 12:38:31 +00:00
Peter Veenstra
b54aa7c5ba TOP is used as 32 bit in dynrec core
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3854
2014-01-12 12:36:13 +00:00