Peter Veenstra
21a0040650
Move definition of LocalFile to header file, requested by bruenor41, makes sense to make it available at a larger scope.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4058
2017-10-10 14:21:31 +00:00
ripsaw8080
451d07d8da
Point DOS redirected interrupts at a plain IRET as in real DOS. Prevents erroneous detection of an active debugger, which for example fixes sound in Microleague Football 2.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4046
2017-09-10 11:22:52 +00:00
Peter Veenstra
6cf39c1fc6
Years update
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4021
2017-05-30 11:35:08 +00:00
ripsaw8080
d16a138ac7
Use default attribute behavior of ANSI.SYS in the console device. Fixes scrolling issues. Anything that wants non-ANSI behavior may not display as intended with the internal DOS, same as real DOS when ANSI.SYS is loaded.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4005
2017-01-15 16:01:34 +00:00
ripsaw8080
2b837cf6fb
Correct stack pointer for COM format programs when there is less than 64K of memory available. Fixes Corncob 3D issue reported in bug #443 .
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3988
2016-06-22 16:29:13 +00:00
ripsaw8080
8fc782f561
Make the internal program for loading ROM images a bit smarter about what it can/will load. Also provide for BASIC in ROM to support IBM BASIC interpreters.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3984
2016-05-23 11:37:39 +00:00
ripsaw8080
64a04b9985
Be more compatible by converting tabs to spaces in the DOS console device rather than in the video BIOS teletype function.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3983
2016-05-23 11:33:09 +00:00
ripsaw8080
3c95f17d95
EXEC improvements, mostly for the load-but-do-not-execute function.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3978
2016-04-05 05:44:43 +00:00
ripsaw8080
f0cf2bc6b0
Prevent DOS buffered input function from hanging in an infinite loop when redirected input reads a linefeed or reaches EOF.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3977
2016-04-05 05:40:48 +00:00
ripsaw8080
77bb9df6a6
Reset CurMode object when detecting that the video mode number in BIOS memory was modified directly instead of through the INT 10h mode set function. Fixes cases where BIOS behavior is influenced with the mode number, such as the status line in Bruce Lee.
...
Set color modes (to the extent that they can be) on the Hercules machine type if the BIOS equipment list is not set to monochrome. Fixes missing text in Victory Road.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3975
2016-04-05 05:29:05 +00:00
ripsaw8080
58c495998a
Fill DTA for FCB search results more like real DOS. Fixes bug #436 .
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3972
2016-03-23 21:24:41 +00:00
Peter Veenstra
f59ebfd303
Fix creation of devices using FCB_Create. Fixes MS Object linker 1.10 and thus bug #435 .
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3971
2016-03-18 16:48:25 +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
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
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
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
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
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
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
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
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
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
1363f5ed68
Add support for DOS 1.x floppy images. Also a small fix to the FAT drive FindNext so it doesn't require a terminating entry in the root directory.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3906
2015-03-13 13:52:48 +00:00
ripsaw8080
235939e277
Attempting to unlink (delete) an existing device name returns an access denied error. Fixes EMM device driver detection, and thus SoundBlaster sound, in the Striker soccer game. Also add a log message for FindFirst.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3905
2015-03-13 13:47:26 +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
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
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
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
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
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
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
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
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
ripsaw8080
49875ee505
CD audio status returns zero start and end times when no track is playing. Fixes The Manhole.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3839
2013-10-22 17:40:41 +00:00
Peter Veenstra
8e017c87c3
Workaround for using (windows) directories insides cue files on Linux.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3830
2013-05-21 18:15:15 +00:00
Peter Veenstra
ffd5cf861e
Enable interupts after running INT 25 and 26, fixes Eol-ui Moheom installer (ripsaw)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3822
2013-03-18 12:34:13 +00:00
Peter Veenstra
16696af9b6
A cdrom has always 65535 clusters on a drive. Fixes regression with titus CD with mount, fixes usage with an image as well.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3819
2013-02-26 20:22:15 +00:00
Peter Veenstra
2fea508f7f
Year update
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3812
2013-01-15 09:03:13 +00:00