1
0
Fork 0
Commit graph

4079 commits

Author SHA1 Message Date
ripsaw8080
3dc6d7115e Add some defines for r3968.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3969
2016-02-14 04:15:05 +00:00
ripsaw8080
ca9049cce5 Implement BIOS beep sound for ASCII character 7.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3968
2016-02-14 04:02:09 +00:00
ripsaw8080
9035510f06 Take into account that speaker might be disabled in settings. Fixes bug #434.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3967
2016-02-14 03:59:17 +00:00
Peter Veenstra
30db525521 Fix compilation on visual studio
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3966
2016-02-12 08:06:04 +00:00
Peter Veenstra
c96a19e3d9 Test using Macro instead of &. Check for failure to open an image. Thanks Malvineous
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3965
2016-02-11 15:47:15 +00:00
Peter Veenstra
3000bd2feb Be a bit more flexible. Parse ver set 3.2 correctly as well.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3964
2016-02-10 09:42:32 +00:00
ripsaw8080
7de4631055 Increase size of SysEx buffer to support Sierra's Yamaha FB-01 driver.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3963
2016-02-09 18:19:45 +00:00
Peter Veenstra
59805112d9 Use record size of 128 if it is 0 in the FCB when calling INT 21 AH=23 (fixes bug #433).
Set record size to 128 if it is 0 in the FCB when calling any FCB read/write function (ripsaw).
Fixes for acad 10:
- Add missing reference counting when the file is already open when calling FCB_Open, so that acad which uses FCBs and normal handles on the same file works better.
- Remove FCBs being added to the PSP filetable and rewrite most functions to support this change. This way acad won't run out of temporary (fcb) files when low on memory.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3962
2016-02-09 14:12:05 +00:00
ripsaw8080
26dd1635b5 Add support for Print Screen key and interrupt. The keypress allows Descent 1 and 2 ingame screenshot feature to be used, the keypress and interrupt allow the Horror Hotel (TSR text adventure) hotkey to work, and the compatible interrupt handler location fixes a game bug in The Forgotten Land.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3961
2016-02-05 13:41:22 +00:00
ripsaw8080
18f5c4c565 Stop speaker output after command write, pending counter write. The hacky implementation will serve until timer/speaker is improved. Fixes constant speaker tone in Arnie 2 and Chopper Duel when using SB sound, also Titus The Fox title screen when using speaker sound.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3960
2016-02-05 13:32:48 +00:00
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