mirror of
https://github.com/holub/mame
synced 2025-05-02 12:36:41 +03:00
Another one...
This commit is contained in:
parent
841c0ce03a
commit
06c0d541ed
@ -3898,7 +3898,7 @@ static TIMER_CALLBACK( sh4_rtc_timer_callback )
|
|||||||
static TIMER_CALLBACK( sh4_timer_callback )
|
static TIMER_CALLBACK( sh4_timer_callback )
|
||||||
{
|
{
|
||||||
static const UINT16 tuni[] = { SH4_INTC_TUNI0, SH4_INTC_TUNI1, SH4_INTC_TUNI2 };
|
static const UINT16 tuni[] = { SH4_INTC_TUNI0, SH4_INTC_TUNI1, SH4_INTC_TUNI2 };
|
||||||
int which = (int)ptr;
|
int which = (int)(FPTR)ptr;
|
||||||
int cpunum = param;
|
int cpunum = param;
|
||||||
int idx = tcr[which];
|
int idx = tcr[which];
|
||||||
|
|
||||||
@ -4654,7 +4654,7 @@ static void sh4_init(int index, int clock, const void *config, int (*irqcallback
|
|||||||
|
|
||||||
for (i=0; i<3; i++)
|
for (i=0; i<3; i++)
|
||||||
{
|
{
|
||||||
sh4.timer[i] = timer_alloc(sh4_timer_callback, (void*)i);
|
sh4.timer[i] = timer_alloc(sh4_timer_callback, (void*)(FPTR)i);
|
||||||
timer_adjust_oneshot(sh4.timer[i], attotime_never, 0);
|
timer_adjust_oneshot(sh4.timer[i], attotime_never, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user