Core/burn/drv/megadrive/megadrive.cpp
// calculate the number of cycles 68k->VDP dma operation would take
calculate the number of cycles 68k->VDP dma operation would take
calculate the number of cycles 68k - > VDP dma operation would take
static INT32 DmaSlowBurn(INT32 len)
{
	INT32 burn,maxlen,line=Scanline;
	maxlen = (224-line) * 18;
	if(len <= maxlen)
		burn = len*(((cycles_68k<<8)/18))>>8;
	else {
		burn  = maxlen*(((cycles_68k<<8)/18))>>8;
		burn += (len-maxlen)*(((cycles_68k<<8)/180))>>8;
	}
	return burn;
}
static INT32 DmaSlowBurn ( INT32 len ) { INT32 burn , maxlen , line = Scanline ; maxlen = ( 224 - line ) * 18 ; if ( len <= maxlen ) burn = len * ( ( ( cycles_68k << 8 ) / 18 ) ) >> 8 ; else { burn = maxlen * ( ( ( cycles_68k << 8 ) / 18 ) ) >> 8 ; burn += ( len - maxlen ) * ( ( ( cycles_68k << 8 ) / 180 ) ) >> 8 ; } return burn ; }
calculate the number of cycles 68k->VDP dma operation would take
calculate the number of cycles 68k - > VDP dma operation would take
// test: Legend of Galahad, Time Killers //if(line == -1) line=vcounts[SekCyclesDone()>>8];