mirror of
https://github.com/libretro/FBNeo.git
synced 2025-02-19 01:00:19 +00:00
m377 divider
This commit is contained in:
parent
138840cd62
commit
bca27e307a
@ -691,6 +691,7 @@ static void m37710_recalc_timer(int timer)
|
||||
//time = attotime::from_hz(unscaled_clock()) * tscales[m377.m37710_regs[0x56+timer]>>6];
|
||||
time = tscales[m377.m37710_regs[0x56+timer]>>6];
|
||||
time *= (tval + 1);
|
||||
time /= 2; // cpu internal divider
|
||||
|
||||
#if M37710_DEBUG
|
||||
logerror("Timer %d in timer mode, %f Hz\n", timer, 1.0 / time.as_double());
|
||||
@ -727,6 +728,7 @@ static void m37710_recalc_timer(int timer)
|
||||
case 0: // timer mode
|
||||
time = tscales[m377.m37710_regs[0x56+timer]>>6];
|
||||
time *= (tval + 1);
|
||||
time /= 2; // cpu internal divider
|
||||
|
||||
#if M37710_DEBUG
|
||||
logerror("Timer %d in timer mode, %f Hz\n", timer, 1.0 / time.as_double());
|
||||
|
@ -1,5 +1,7 @@
|
||||
// fb neo m37710 / m37702 cpu intf
|
||||
|
||||
// Internal Divider / 2!
|
||||
|
||||
#include "m37710.h"
|
||||
|
||||
// cpu types:
|
||||
|
Loading…
x
Reference in New Issue
Block a user