Ralf Grillenberger
3059df4278
Timer patch
...
- remember timer value beyond mode switch: Fixes 3DMania, Dunkle Schatten with Soundblaster, glitch in Panic demo
- set a defined short interrupt response time for CPU-induced interrupts
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3692
2011-04-02 20:38:41 +00:00
Peter Veenstra
2dff0226b9
Reverse revision 3567 as it breaks a few games and the new patch could use some more testing.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3577
2010-04-08 14:29:55 +00:00
Ralf Grillenberger
13ea835d96
Keep the timer value during timer mode changes (undocumented behavior). Fixes Dunkle Schatten with Soundblaster and 3DMania.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3567
2010-04-04 12:29:25 +00:00
Peter Veenstra
a78b2c4f8b
Update year
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3548
2010-02-11 13:36:50 +00:00
Peter Veenstra
1e1dbbff8c
Change timer code so it works better when the timing gets off due to the cpu core not stopping at the right moment (patch by h-a-l-9000). Some minor LIKELY stuff
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3534
2010-01-13 18:26:07 +00:00
Sebastian Strohhäcker
1c92388bfd
use sensible counter latch value for initialization of timer2 (fixes startrek sf academy demo)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3340
2009-04-10 09:53:04 +00:00
Sebastian Strohhäcker
b2b0fa448d
update pit counter in mode2 on the next timer event rather than immediately (thanks to hal for this one, fixes worms1 cutscenes)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3332
2009-03-28 12:20:52 +00:00
Peter Veenstra
92dade7e5b
Show a few more digits.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3179
2008-07-14 19:30:29 +00:00
Peter Veenstra
f2c40b9407
Add way to easy timer 4 check to counter_output. But seems to work.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3113
2008-03-02 08:55:04 +00:00
Peter Veenstra
28c34f2b04
Add fix for dungle schatten 1. Implement timer mode 1. Flip gate2 default value (h-a-l-9000)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3049
2007-11-18 17:09:15 +00:00
Sebastian Strohhäcker
0c24e87fdc
silence some warnings, add most of sf patch #1185267 by Moe
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2883
2007-06-12 20:22:09 +00:00
Peter Veenstra
44fd176892
Some patches by h-a-l-9000. Simple implementation of the gate of timer 2. Only switch to bcd when programming. Don't fire the same irq twice when reprogramming.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2876
2007-06-08 08:21:45 +00:00
Peter Veenstra
bc0a6460ac
Keeping the timer more in sync.(h-a-l-9000)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2760
2007-01-13 09:57:25 +00:00
Peter Veenstra
fdd16dea1a
Happy New Year\!
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2728
2007-01-08 19:45:42 +00:00
Sebastian Strohhäcker
3b2a10e63b
timer fix for 1000 Miglia (hal)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2680
2006-08-03 19:36:12 +00:00
Peter Veenstra
06297a72ae
Don't raise irq 0 when programming a new timer instantatanously. Take in account that the hardware requires some time to be setup as well.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2669
2006-07-10 09:27:37 +00:00
Peter Veenstra
4775cd6f42
Synchronize timer on repeated events to compensate for lost accuracy.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2628
2006-05-19 10:34:02 +00:00
Peter Veenstra
8ece9230da
timer mode 0 counter after passing terminal count update by h-a-l-9000.(Fixes Archon Ultra and The Horde)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2624
2006-05-18 11:25:46 +00:00
Peter Veenstra
49870fee9c
Implement counter status.(h-a-l-9000)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2592
2006-04-11 12:02:09 +00:00
Peter Veenstra
da5641fc2f
Revert former fix so that panic works again. (DSTROY still works as well). Makes no sense though.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2525
2006-02-27 20:16:49 +00:00
Peter Veenstra
df67775306
time passes on and on....
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2480
2006-02-09 11:47:57 +00:00
Peter Veenstra
bc49a1ce91
Fix timers. Timer irq will now be removed if a mode 0 is programmed (fixes DSTROY). Added some explanation on why this should happen. Changed the old check to use to old timer mode instead of the new mode.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2261
2005-08-07 17:33:15 +00:00
Peter Veenstra
d382abd209
New configuration layer. Runtime changing of settings.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2160
2005-03-25 11:52:32 +00:00
Peter Veenstra
2094d8b985
Year update
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2106
2005-02-10 10:21:12 +00:00
Peter Veenstra
2ae5a14bcf
Handle mode 0 differently
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2054
2004-11-13 11:59:46 +00:00
Sjoerd van der Berg
dfbb195418
changes for improved timing event system
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1968
2004-09-10 22:15:20 +00:00
Sjoerd van der Berg
d94017a7b1
Add checking if an irq needs to be raised immediatly when programming new timer
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1945
2004-09-07 11:28:27 +00:00
Sjoerd van der Berg
f20a8594a8
Don't reset the current timer when programming a new unless it's a mode 0 timer
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1934
2004-08-31 15:56:10 +00:00
Peter Veenstra
ca409fd57c
Typo in preamble
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1899
2004-08-04 09:12:57 +00:00
Sjoerd van der Berg
13d4604573
Check that timers don't get 0 microseconds intervals
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1847
2004-06-20 17:01:58 +00:00
Sjoerd van der Berg
3e6947cb87
Add reading of timer 1 and give it the value xt bios gives it
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1835
2004-06-17 07:27:55 +00:00
Sjoerd van der Berg
9cd769b878
New io handler functions
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1758
2004-04-03 19:35:34 +00:00
Peter Veenstra
11b3ee2999
added basic BCD counting
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1695
2004-03-03 12:37:12 +00:00
Sjoerd van der Berg
44464a2a53
Changed event and ticker handlers.
...
Removed the micro timers.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1657
2004-02-07 18:37:16 +00:00
Peter Veenstra
76460ed400
Chuck Yeager timer inits (Srecko)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1551
2004-01-10 11:43:41 +00:00
Peter Veenstra
c36318f721
correct all unintentional changes
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1314
2003-10-14 08:38:36 +00:00
Ulf Wohlers
5e13e5c0e4
argh, committed good file...
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1313
2003-10-13 22:01:07 +00:00
Ulf Wohlers
55591a56da
no message
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1312
2003-10-13 19:44:47 +00:00
Peter Veenstra
eba92fc10a
fixed crashes in MadTv1 (reading from pit 2 without being latched first)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1217
2003-09-01 20:16:59 +00:00
Sjoerd van der Berg
feb42742ac
Moved some timer tick handling to PIC
...
Changed pic_runqueue a bit for new pic scheduling handling.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1160
2003-07-26 10:45:11 +00:00
Sjoerd van der Berg
75c8236f5b
don't exit on unhandled pit commands
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1091
2003-07-06 15:31:47 +00:00
Sjoerd van der Berg
b222a9576a
Warning clean up
...
Removing some old unused routines
Addind some newlines after some files.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1077
2003-06-19 17:12:50 +00:00
Peter Veenstra
bbb7cf45b0
updated loggingsystem
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@989
2003-05-04 19:19:09 +00:00
Sjoerd van der Berg
bb30f7f309
Fixed mixup with LSB and MSB when reading timer latch.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@949
2003-04-20 10:44:15 +00:00
Sjoerd van der Berg
9a34d7bd32
Fixes to pit timer mode 0
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@783
2003-03-22 08:52:20 +00:00
Sjoerd van der Berg
1e853d8dc6
Some support for special latch command.
...
Fix to mode 0 timers.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@760
2003-03-13 21:20:22 +00:00
Peter Veenstra
f79eaaba75
updates for new logging system
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@695
2003-02-27 19:56:22 +00:00
Sjoerd van der Berg
6e61c2621a
Changed it so pit counters count down and correct latching of mode 3 timers.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@572
2002-12-16 09:31:38 +00:00
Peter Veenstra
7e0be98e8c
VSC doesn't all the casts
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@544
2002-11-28 18:22:12 +00:00
Sjoerd van der Berg
64540317fa
New timer code and timer event handling
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@517
2002-11-17 11:17:30 +00:00