1
0
Fork 0
Commit graph

578 commits

Author SHA1 Message Date
ripsaw8080
c898d14351 Correct page count/size for CGA graphics modes. Fixes RS-2 on the CGA machine type.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3987
2016-06-22 16:24:16 +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
Peter Veenstra
9fc2c31a97 Support writing palette register data to dynamic save area if pointer is non-zero on mode changes. Fixes CV 2.2 (thanks for the help ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3982
2016-05-10 14:38:39 +00:00
ripsaw8080
2b32f2bfa9 Prevent problems related to I/O buffering with disk images.
Return a fake success result for INT 13/05. Helps older games (Sierra On-Line booters, Mickey's Space Adventure, Zyll, et al.) that insist on low-level formatting a floppy disk to be used for saving games.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3980
2016-04-18 13:07:18 +00:00
ripsaw8080
6f0506ec42 Graphics mode text drawing improvements: font source according to machine type, background color in 256-color modes, row wrapping.
Use compatible method of determining fill attribute for textmode screen scrolling in teletype function.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3976
2016-04-05 05:38:52 +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
3a8712202e Add support for mode 8 row copy/fill. Fixes Tandy GW-BASIC interpreter SCREEN 3 scrolling/clearing.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3973
2016-03-29 21:08:40 +00:00
ripsaw8080
663c86378f Fix screen clearing when setting mode 0xA on PCjr machine type.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3970
2016-03-06 13:04:58 +00:00
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
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
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
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
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
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
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
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
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
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
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
Peter Veenstra
08db52896d Fix compilation on mingw systems.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3908
2015-03-28 18:54:09 +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
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
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
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
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
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
ripsaw8080
a8d8f7818a There are only 248 default colors in the 256-color mode palette, and the remaining 8 colors are not altered by mode changes. Fixes font and mouse pointer colors in Voyages of Discovery.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3852
2013-12-11 13:59:24 +00:00
Ralf Grillenberger
56d19f4f8d By implementing Tandy special handling of the palette:
- fix Starflight background color (reported by HunterZ)
- keep Pirates! map background correct

Also fix the palette after mode switch on the PCJr. Fixes Frogger II composite mode color attributes (reported by VileRancour).


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3832
2013-06-16 20:42:27 +00:00
Peter Veenstra
15c1bb607f Refinements of an earlier fix. Thanks ripsaw
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3821
2013-03-11 08:20:39 +00:00
Peter Veenstra
28fe87edce Make system handler 24 pages, Fixes Mega Blast and maybe others. Thanks ripsaw
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3820
2013-02-28 10:30:26 +00:00
Peter Veenstra
d60d8b8995 Add int 33 0x2a for speed manager 96. (ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3817
2013-02-09 21:11:32 +00:00
Ralf Grillenberger
2c8adb2660 Use current address instead of (current page * page size) for the scroll window base. This is the implementation in S3 and IBM VGA. Tseng BIOSes have the previous, incompatible implementation. Fixes an advertisement program and possibly others I don't remember. Patch by ripsaw.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3815
2013-01-27 18:27:36 +00:00
Ralf Grillenberger
81226995de Add support for monochrome mode:
- EGA and VGA mode 0x0F (implement plane masking in the attribute controller)
- re-factor EGA monitor emulation (attribute controller bit is used to detect monochrome mode, horizontal frequency to choose 16/64 colors)

Hardware blinking in graphics mode is still not supported.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3813
2013-01-26 22:01:32 +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
Peter Veenstra
5eb1217cb4 Move buffer to class for upcomming multiple floppy support (rcblanke). Remove heavy bios_disk dependency from drives.h
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3806
2012-12-26 16:14:19 +00:00
Peter Veenstra
e93bc1e558 Enable interrupt flag after call 0x11 as well. Thanks ripsaw. Fixes a Korean game
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3802
2012-11-14 13:22:04 +00:00
Ralf Grillenberger
f2887664fa Fix BIOS text output in 320x200 16 color and 640x200 4 color modes on the PCJr (it maps only 16kB at 0xB800 and thus access has to go to the actual address in main memory)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3789
2012-07-29 19:29:46 +00:00
Ralf Grillenberger
be2b9c2db7 Prepare the PCJR video palette chip before writing data. Thanks ripsaw.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3788
2012-07-29 17:46:51 +00:00
Peter Veenstra
21bbbec1cc Update mickeys directly instead of when reporting them to the application. Apply improved handling of sign switching. Improves Settlers 2(ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3782
2012-06-08 21:01:43 +00:00
Peter Veenstra
498e583251 Model irq 0 stack layout in a more compatible way. Fixes M.U.L.E. booter. (ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3781
2012-06-08 14:23:55 +00:00
Peter Veenstra
1b12a9c1a5 be less restrictive. Hope nothing breaks. Fixes AS2. (peterferrie)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3766
2011-12-08 13:06:31 +00:00
Peter Veenstra
837396cc21 apply granularity only for stuff reported to the clientmou
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3765
2011-12-08 12:59:51 +00:00
Peter Veenstra
a7af902f2f Even our comments and status messages have less bugs now (jomalin)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3764
2011-12-08 12:47:04 +00:00
Peter Veenstra
fc1ffcc528 Some typo corrections of the comments. (jomalin)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3763
2011-11-29 16:45:45 +00:00
Peter Veenstra
f51d4e5b67 Include stddef for offsetof here as well instead of relying on dos_inc.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3760
2011-11-20 17:33:16 +00:00
Sebastian Strohhäcker
6f5930ee92 some warning fixes (fear the msvc)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3758
2011-11-17 23:04:05 +00:00
Peter Veenstra
333da22de6 Add textmode granulity. Fix cursor handling in mode 0 and 1. Fixes DOOM-IT (thanks ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3757
2011-11-12 22:14:51 +00:00
Peter Veenstra
6dfe1d9dcf Call int 0xe when resetting a disk. Fixes a keydisk workaround algorithm. (thanks ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3751
2011-09-01 12:19:52 +00:00