1
0
Fork 0
Commit graph

546 commits

Author SHA1 Message Date
Peter Veenstra
2aaa951fd4 Rewrite pop_ev so it can trigger pagefaults again. Fixes win3.11. (jmarsh)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4219
2019-04-26 14:06:11 +00:00
ripsaw8080
bbea47d541 Let dynamic core recompile interrupt instructions in non-debug builds. Can help software with many INTs, such as compiled BASIC, run faster.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4213
2019-04-20 22:43:36 +00:00
Peter Veenstra
5c8e9264d1 stop storing raw modrm value, as it isn't used any more. Should save an instruction on each get_modrm call.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4208
2019-04-19 17:07:26 +00:00
Peter Veenstra
ea4dd721b5 use decoded modrm instead of raw value. so we don't need to store it.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4207
2019-04-19 17:05:47 +00:00
Peter Veenstra
dc6a76d354 Store whether generated code is 16 or 32 bit, so this information can be used when checking for self modifying code. Some code is identical except for being 32 or 16 bit. Fixes some hard to reproduce problems (with small codeblocks). Thanks jmarsh!
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4206
2019-04-19 12:16:14 +00:00
ripsaw8080
3978e05909 Improve prefetch and simple cores to not switch to normal core on trap execution. Fixes the demo version of Prehistorik 2 and similar cases that use the trap flag and prefetch tricks. Thanks NewRisingSun.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4201
2019-04-01 22:06:11 +00:00
ripsaw8080
64d25c4be4 Acknowledge mouse interrupt before entering user routine; fixes sound stutter during mouse movement in Eye of the Beholder III and Casino Tournament of Champions. Clear button counters in the mouse driver reset function; prevents unintended skipping of intro in MechWarrior and others.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4188
2019-02-04 15:15:58 +00:00
Peter Veenstra
1fbaff47fc Update year and address of FSF
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4183
2019-01-25 14:09:58 +00:00
Peter Veenstra
1960a815e1 Improvements for compiling dynrec core in 64 bit mode on windows. Thanks for the help PgrAm and kjliew.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4171
2018-11-16 12:40:37 +00:00
Peter Veenstra
2f09b52de8 Fix typos reported by lintian and change DosBox to DOSBox.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4161
2018-09-14 19:53:55 +00:00
Peter Veenstra
823242560c Commit fix by M-HT.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4119
2018-06-14 21:06:50 +00:00
Peter Veenstra
89eddef2f7 cleanup unfinished and unworking core stub
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4118
2018-06-13 09:26:06 +00:00
Peter Veenstra
e20cc10750 Add 64-bit ARM (ARMv8, little endian) by M-HT. Thanks M-HT!
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4117
2018-06-13 09:24:01 +00:00
Peter Veenstra
5bb10db88b Time keeps on ticking
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4109
2018-05-29 12:58:58 +00:00
ripsaw8080
e01a04aee9 Flag handling (mostly undocumented behavior) for normal core: overflow flag for divide instructions, zero and sign flags for integer multiply instructions. Fixes A320 Airbus and Perfect General.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4098
2018-05-03 17:11:36 +00:00
Peter Veenstra
06c91d8d0b Beautify CPU_CheckSegments in order to silence a warning (if (A) B; break (which get a misleading warning as break is not part of the if))
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4069
2018-01-30 15:56:33 +00:00
ripsaw8080
1fb8141175 Zero INT 68h vector on CGA machine type. Helps default speed of Popcorn game.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4050
2017-09-11 18:03:24 +00:00
ripsaw8080
4aa821d0e6 Implement waiting for retrace in VBE functions. Remove range checks in protected mode functions, consistent with UniVBE and other VBE implementations. Fixes hang and graphics glitches in Jack Orlando.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4048
2017-09-10 11:29:34 +00:00
Peter Veenstra
1e72be6a96 Otherwise debugging makes no sense.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4027
2017-08-06 14:22:01 +00:00
Peter Veenstra
df166ff0a4 As we zero out the memory on startup for a long time now. This should not exit anymore. Leaving the warning for now.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4026
2017-08-06 14:21:03 +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
d6e983b08d Handle errant IRQs as a real BIOS does. Fixes Tandy DAC in Chuck Yeager's Air Combat. Also remove r3263 workaround, as it's no longer needed.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4009
2017-05-01 15:32:29 +00:00
Peter Veenstra
397e38a73a Improve readability of auto cycles information bit.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3997
2016-09-20 14:59:06 +00:00
Peter Veenstra
d94dc4834e zero extend data, fixes LLVM compile where the called function does not extend the parameters. Thanks guiikoza. Fixes at least vesatest.exe of lsl7
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3990
2016-07-23 20:31:25 +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
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
0b568ebbd0 correct typo in the includeguards
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3901
2015-02-24 13:54:43 +00:00
Peter Veenstra
f9c67101c7 Workaround clang confusing itself (compile error), results in a small speed up in general (thanks for helping wjp). clang compiled x64 dynrec core appears to be unstable though. (-O0 seems to help)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3894
2015-01-21 20:50:40 +00:00
Peter Veenstra
85c11c6fef Add C_DEBUG checks around C_HEAVY_DEBUG, so you can leave C_HEAVY_DEBUG defined.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3893
2015-01-14 12:31:01 +00:00
ripsaw8080
1acc1a459a Improve compatibility of the PCjr keyboard NMI handler by setting DS to the BIOS data segment before calling INT 9. Fixes crashes in Shamus on the PCjr machine type.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3884
2015-01-06 18:02:28 +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
767a95380b mirror cache handling with dynrec core with allocation stuff for 64 bit things
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3873
2014-11-21 09:38:36 +00:00
Peter Veenstra
7c25fb4684 reg_eip is 32 bit(jmarsh)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3856
2014-01-12 12:54:58 +00:00
Peter Veenstra
3ddbfe949a fpu.sw is 16 bit(jmarsh)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3855
2014-01-12 12:38:31 +00:00
Peter Veenstra
625dcb3c28 Cast it to a variable that has the same size as a pointer (64 bit)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3848
2013-11-12 21:43:23 +00:00
Peter Veenstra
80df53942c Update Arm dynrec core. Most important change: use ARMv7 instructions. Thanks a lot M-HT
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3846
2013-11-11 13:25:50 +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
82f2c0b442 Add INSD
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3785
2012-07-21 18:22:17 +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
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
5892095301 Include stddef for offsetof here as well instead of relying on dos_inc.h through programs.h.cpu.cpp
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3759
2011-11-20 17:32:09 +00:00
Sebastian Strohhäcker
eb395f5add small recompiler fixes (missing host fpu usage check; assembler output update) and enhancements
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3752
2011-09-07 18:43:03 +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
ee982d5754 Use a fixed cycle rate in auto cycles mode when calculating RDTSC. Improves Tie break Tennis 98
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3748
2011-08-30 13:15:36 +00:00
Sebastian Strohhäcker
df67bd2afb fix manual uninstall functions for callback/io-handler objects; cleanup
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3725
2011-06-19 13:21:11 +00:00
Sebastian Strohhäcker
f1d85a3739 add manual uninstall functions for callback/io-handler objects
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3721
2011-06-17 14:28:00 +00:00
Peter Veenstra
de75bc83f6 Enforce call order of the functions used in the bitshift. Fixes visual C /O2 builds. Thanks h-a-l-9000 and wjp.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3718
2011-06-12 13:56:44 +00:00
Sebastian Strohhäcker
bf8496c092 cr0 always signals 386-type FPU present for 486+ target architectures (fixes Biing cdrom version)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3710
2011-05-10 18:00:03 +00:00
Sebastian Strohhäcker
1bf90c16c2 add rdtsc instruction to full core as well for consistency
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3709
2011-05-09 16:19:24 +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