m377 divider

This commit is contained in:
dinkc64 2021-03-08 08:54:59 -05:00
parent 138840cd62
commit bca27e307a
2 changed files with 4 additions and 0 deletions

View File

@ -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());

View File

@ -1,5 +1,7 @@
// fb neo m37710 / m37702 cpu intf
// Internal Divider / 2!
#include "m37710.h"
// cpu types: