1
0
Fork 0
Commit graph

4019 commits

Author SHA1 Message Date
ripsaw8080
fe46abe6ff Speaker init in BIOS causes samples to be generated at startup, so for now move it to hardware.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3959
2016-02-05 13:29:17 +00:00
ripsaw8080
81e4f773f5 Comment out unused counter var inside a busy loop. Compilers might be smart enough to drop it, but this way is certain.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3958
2016-02-05 13:26:23 +00:00
Peter Veenstra
19264794cb minor cleanup
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3957
2016-01-30 16:39:35 +00:00
Sjoerd van der Berg
0d868c990f Prevent a multiplication overflow and more accuracy by using floats for attack rate loop
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3956
2016-01-30 16:09:04 +00:00
ripsaw8080
dc4aabb403 Correct some offsets in the DTA for FCB-based search results. Fixes DIR listing in COMMAND.COM from MS-DOS and file info in XTree Gold.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3955
2015-12-21 17:14:42 +00:00
ripsaw8080
bfd180f5ae Change BIOS equipment list to indicate DMA not supported on PCjr machine type, which fixes PCjr detection in old versions of Ancient Art of War, although DMA hardware emulation is actually still present.
Set PC speaker initial state in BIOS init, fixing beeps when the speaker is turned on and off without first programming the timer, such as in Koei's Ghengis Khan.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3954
2015-11-14 13:42:16 +00:00
Peter Veenstra
966c376302 strstr is a bit too much.
Pretty it up! 

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3953
2015-11-12 17:40:11 +00:00
Peter Veenstra
da7fdf8919 Speed up GetHexValue.
Restore 1,2,3,4,5 as run 5,500,1000,5000,10000 instructions. It doesn't work flawless, but it is usable as is.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3952
2015-11-12 16:51:25 +00:00
Peter Veenstra
2c554e48dd Apply patch by gulikoza to add support for absolute 64 addresssing.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3951
2015-11-02 18:09:06 +00:00
Peter Veenstra
76a04f0807 Fix bug #395 DOSBox can't handle double-quoted values in dosbox.conf files.
Extend the fix to include single quoted values.
Fix a common typo: Separator => Separator


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3950
2015-10-20 17:06:29 +00:00
Peter Veenstra
b2bcdaf1ef Fix bug #349 dynrec endianness unsafe access to Segs.val[x]
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3949
2015-10-20 16:19:45 +00:00
ripsaw8080
53a38b773a Improve internal ANSI support to adapt to currently displayed columns and rows. Fixes original Infocom interpreters when using something other than 80x25.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3948
2015-10-19 23:37:06 +00:00
Peter Veenstra
2a1ae6fb9c Improve rename support for when renaming files (in a folder) on a drive different from the current one.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3947
2015-10-08 19:51:01 +00:00
Peter Veenstra
4aaa632bd9 touch up cdrom stuff for mingw64 once again (ny00123)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3946
2015-10-05 08:11:45 +00:00
ripsaw8080
6c0cca1878 Don't write past the terminator in the DTA name field when setting search results. This is what DOS does, and writing junk after the terminator was not good in any case. Fixes file listing in the 16-bit version of Galaxy Player.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3945
2015-10-03 09:21:56 +00:00
ripsaw8080
1eecef3f33 Use full mask; fixes label search on FAT drives.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3944
2015-10-03 08:59:45 +00:00
Peter Veenstra
c4177a33c6 Add patch 256 from Dominus: OS X - CoreAudio deprecated warnings eliminated
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3943
2015-10-02 20:40:41 +00:00
Peter Veenstra
c8a128d733 Rework the parsing of arguments into the FCBs:
- We now first split the line into arguments using space,tab,;,=,',' as separators.
- Next we convert /Hello into H ello 
- Lastly we feed the arguments 1 and 2 to the FCB_Parsename function
(- It got messy, but the results are better )

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3942
2015-10-02 20:23:14 +00:00
Peter Veenstra
34cc2d6428 correct AX and BX, they contain information on the existence of the drives specified in the FCBs in the execute block.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3941
2015-10-02 20:16:28 +00:00
Peter Veenstra
cf9f8b2d3e -Add DOS_ToUpper which seems closer than just toupper, we might need to use it at more places than just the driveletter, but it is a big change.
-Rework FCB_ParseName:
-- Remove special code for . and .. as it was wrong
-- Continue reading the input string, when the max length of the field has been reached (123456789.12345 is read and returned as 12345678.123)
-- strip spaces before and after reading the separators.
-- The drive is always parsed (if present), it doesn't depend on the existence of said drive.
-- Fix parsing of .EXE and other extension only names
-- Always clear out current block and record size.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3940
2015-10-02 20:13:57 +00:00
Peter Veenstra
57ff3dfc95 Added commented out log message, to save some work
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3939
2015-10-02 20:02:55 +00:00
Peter Veenstra
39875d92da Add call to clear out some more fields, needed for fcb name parsing.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3938
2015-09-30 14:24:49 +00:00
Peter Veenstra
b0a3ca8259 Add hardware text mode cursor support.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3937
2015-09-30 12:25:13 +00:00
ripsaw8080
babb297c60 Add opl3gold option to oplmode setting. With this option the AdLib Gold music can be selected in Dune. Only FM music without effects (reverb, stereo enhancement, surround sound, etc.) is supported; and FM volume control, used in the CD-ROM version of Dune, does work.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3936
2015-09-20 23:39:55 +00:00
Peter Veenstra
0c979d54a5 VS2015 wants it this way
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3935
2015-09-09 13:23:23 +00:00
Peter Veenstra
cb28976df6 More robust parsing, so that dosbox -fullscreen A.EXE works
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3934
2015-09-08 13:46:26 +00:00
Peter Veenstra
96fb43a208 Slight reordering of the arguments. Add -socket
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3933
2015-09-08 13:44:34 +00:00
ripsaw8080
1b7b92ed8a Add alternate font tables and associated loading logic in video BIOS, allowing correct gaps between "wide" characters (e.g. m,w,M,W,T,Z,0) in all VGA machine types.
Update all related BIOS memory values and CRTC registers when loading fonts, fixing quirks in some textmode programs like Inertia Player. Based in part on a patch by h-a-l-9000.

Improve support for MDA emulation in the vgaonly machine type, as it is the only way the video BIOS can make use of the 14-line alternate symbols.

Be compatible by setting the INT 43h vector to the first half of the 8-line font table for standard text modes. Fixes a few obscure games and demos that rely on this BIOS behavior.

Move VESA mode table and OEM string before font tables in the video ROM, which is a more compatible ordering and gives the data low address offsets that work around a bug in some programs such as the Abuse game and Molejo demo.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3932
2015-08-28 14:37:25 +00:00
Peter Veenstra
f66ff6e3d7 Only compile when in debug mode.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3931
2015-08-19 18:26:04 +00:00
ripsaw8080
5a748e5cbb Display a simple startup message for sub-shells instead of the welcome banner.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3930
2015-08-17 15:06:28 +00:00
Peter Veenstra
a03d9faf91 Add some more cases to the Alt-tab detection. It can still mess up, but this should help with a lot of cases. Thanks for testing eightbitbubsy.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3929
2015-08-17 14:07:01 +00:00
Peter Veenstra
64ad48ee52 Slight compression, so that we have more space at the bottom for height restricted screens.
Add some colours to the prompt, so it is more visible.
General improvements to the section parsing

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3928
2015-08-17 14:00:40 +00:00
ripsaw8080
59c9ae1d60 Fix shell PAUSE command when reading extended keys, and make TYPE command more compatible by stopping at EOF byte.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3927
2015-08-05 14:56:36 +00:00
ripsaw8080
b9cb003a62 Setting SB input rate sets output rate, fixes Fasttracker II. Clear incomplete DSP command at reset, fixes Romancing Prince.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3926
2015-08-05 14:40:51 +00:00
Peter Veenstra
acd7b73c8a Ignore/remove single % in batchfiles. (Fixes B13Demo batchfiles on pcgamer coverdisc 1995-08)
Remove magic constants.
Add some boundary checks.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3925
2015-07-15 16:31:35 +00:00
Peter Veenstra
0316809ac9 Some more changes by Jochen
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3924
2015-07-09 06:25:46 +00:00
Peter Veenstra
79419f1f53 Bring OS2 port up to date. Thanks Jochen
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3923
2015-07-08 12:01:33 +00:00
Peter Veenstra
b0c72903e4 Enable SETMODE_SAVES_CLEAR for now. Fix compilation with SETMODE_SAVES set to 0. Use safe_strncpy for resolution lines.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3922
2015-07-07 11:06:27 +00:00
Peter Veenstra
db0a72cd4d and a few more.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3921
2015-07-04 18:37:14 +00:00
Peter Veenstra
bb604c1d77 some stl implementations fake the interators...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3920
2015-07-04 18:24:54 +00:00
Peter Veenstra
a26c21df35 some type cleanups (warnings and making sense).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3919
2015-06-05 13:53:21 +00:00
Peter Veenstra
5c10edabb8 readb returns 8 bit value. (fixes some logging warnings later on)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3918
2015-06-05 13:31:45 +00:00
Peter Veenstra
7e22a0f0c0 make variable types used in swapping consistent and use Bit8u for drives.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3917
2015-06-05 13:22:37 +00:00
Peter Veenstra
084342cf83 typo
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3916
2015-06-05 13:20:03 +00:00
Peter Veenstra
fefe419a27 Fix (accidental) compare, fix values and removed the whole line as it wasn't used (see comment)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3915
2015-06-05 13:19:09 +00:00
ripsaw8080
b293cfa044 Improve compatibility of internal mouse driver with respect to video mode changes and hiding the pointer, and handle font reloading as a kind of mode change. Also fix unlocked mouse pointer to recognize the full range of tweaked/fontloaded text modes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3914
2015-05-13 02:26:37 +00:00
ripsaw8080
ba3110ca07 Aspect correction fixes for CGA composite, Hercules graphics, 350-line text modes, 400-line VESA modes, and VGA ModeX (God of Thunder, Lost Vikings, Wrath of Earth, etc.)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3913
2015-05-13 01:35:39 +00:00
ripsaw8080
937dcdb1ee Use normal teletype function for non-ANSI output so the default attribute 7 applies only to graphics modes and existing attributes are not changed in text modes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3912
2015-05-13 01:24:56 +00:00
Peter Veenstra
5a7b43f704 Introduce mount -pr to mount paths relative to last loaded configuration file.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3911
2015-05-01 12:48:27 +00:00
ripsaw8080
f51d23bcab Correct an oversight in mode table flags, which at least fixes aspect correction of mode 6 on VGA machine types. Thanks superfury for noticing.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3910
2015-04-03 09:36:16 +00:00