Add H6280 timer support to burn_ym3812.cpp
This commit is contained in:
parent
8e08e0c4be
commit
e6c3373780
|
@ -5,6 +5,7 @@
|
|||
#include "hd6309_intf.h"
|
||||
#include "m6800_intf.h"
|
||||
#include "m6502_intf.h"
|
||||
#include "h6280_intf.h"
|
||||
|
||||
// Timer Related
|
||||
|
||||
|
@ -304,6 +305,20 @@ INT32 BurnTimerAttachM6502YM3812(INT32 nClockspeed)
|
|||
return 0;
|
||||
}
|
||||
|
||||
INT32 BurnTimerAttachH6280YM3812(INT32 nClockspeed)
|
||||
{
|
||||
nCPUClockspeed = nClockspeed;
|
||||
pCPUTotalCycles = h6280TotalCycles;
|
||||
pCPURun = h6280Run;
|
||||
pCPURunEnd = h6280RunEnd;
|
||||
|
||||
nTicksExtra = MAKE_TIMER_TICKS(1, nCPUClockspeed) - 1;
|
||||
|
||||
// bprintf(PRINT_NORMAL, _T("--- timer cpu speed %iHz, one cycle = %i ticks.\n"), nClockspeed, MAKE_TIMER_TICKS(1, nCPUClockspeed));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Sound Related
|
||||
|
||||
void (*BurnYM3812Update)(INT16* pSoundBuf, INT32 nSegmentEnd);
|
||||
|
|
|
@ -15,6 +15,7 @@ INT32 BurnTimerAttachM6800YM3812(INT32 nClockspeed);
|
|||
INT32 BurnTimerAttachHD63701YM3812(INT32 nClockspeed);
|
||||
INT32 BurnTimerAttachM6803YM3812(INT32 nClockspeed);
|
||||
INT32 BurnTimerAttachM6502YM3812(INT32 nClockspeed);
|
||||
INT32 BurnTimerAttachH6280YM3812(INT32 nClockspeed);
|
||||
|
||||
extern "C" void BurnYM3812UpdateRequest();
|
||||
|
||||
|
|
Loading…
Reference in New Issue