1
0
Fork 0
Commit graph

568 commits

Author SHA1 Message Date
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
Peter Veenstra
361da0de98 Xor numlock and shift for numpad.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3737
2011-07-29 19:14:33 +00:00
Peter Veenstra
95de46cc95 Let's not copy extended memory when we finish waiting.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3731
2011-07-20 20:50:32 +00:00
Peter Veenstra
2b0081cf59 Increase number of floppies when using non-disk images as well. Maybe decrease the number on unmount in the future. Thanks ripsaw
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3729
2011-07-16 12:24:46 +00:00
Ralf Grillenberger
cc5f9e2810 Update comments on reboot-shutdown functionality
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3726
2011-06-19 16:27:28 +00:00
Sebastian Strohhäcker
6bc4e41458 add PCI framework
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3723
2011-06-18 13:39:31 +00:00
Ralf Grillenberger
a5ee614503 - Add midnight/next day increment
- Add date and time commands (functionality limited)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3715
2011-06-05 18:28:00 +00:00
Sebastian Strohhäcker
1887b2590b speed up fat drive access
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3714
2011-05-28 20:26:12 +00:00
Peter Veenstra
7f27714557 Correct Get Extended Shift States; Int 16 call 12 (thanks ripsaw).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3711
2011-05-11 11:06:36 +00:00
Peter Veenstra
999f33de27 Update year. Remove CVS tags
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3700
2011-04-26 09:34:55 +00:00
Sebastian Strohhäcker
832f1bf0d4 add compatibility POST chaining, certain game exiting should look better now (ripsaw, sort of fixes a hangup with Astro Dodge)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3698
2011-04-22 14:18:00 +00:00