71 lines
1.7 KiB
C
71 lines
1.7 KiB
C
/***************************************************************************
|
|
|
|
deprecat.h
|
|
|
|
Definition of derprecated and obsolte constructs that should not
|
|
be used by new code, if at all possible.
|
|
|
|
Copyright Nicola Salmoria and the MAME Team.
|
|
Visit http://mamedev.org for licensing and usage restrictions.
|
|
|
|
***************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#ifndef __DEPRECAT_H__
|
|
#define __DEPRECAT_H__
|
|
|
|
#include "mamecore.h"
|
|
|
|
|
|
/*************************************
|
|
*
|
|
* Global access to the currently
|
|
* executing machine.
|
|
*
|
|
* Please investigate if it is
|
|
* possible to use a passed in
|
|
* 'machine' argument.
|
|
*
|
|
*************************************/
|
|
|
|
extern running_machine *Machine;
|
|
|
|
|
|
|
|
/*************************************
|
|
*
|
|
* Old way of allowing "VBLANK"
|
|
* interrupts to fire more than once
|
|
* a frame.
|
|
*
|
|
* These should be replaced with
|
|
* scanline based interrupts as
|
|
* it makes no sense to have more
|
|
* than one VBLANK interrupt
|
|
* per frame.
|
|
*
|
|
*************************************/
|
|
|
|
#define MDRV_CPU_VBLANK_INT_HACK(_func, _rate) \
|
|
TOKEN_UINT32_PACK2(MCONFIG_TOKEN_CPU_VBLANK_INT_HACK, 8, _rate, 24), \
|
|
TOKEN_PTR(interrupt, _func),
|
|
|
|
|
|
|
|
/*************************************
|
|
*
|
|
* Core timing
|
|
*
|
|
*************************************/
|
|
|
|
/* Returns the number of times the interrupt handler will be called before
|
|
the end of the current video frame. This is can be useful to interrupt
|
|
handlers to synchronize their operation. If you call this from outside
|
|
an interrupt handler, add 1 to the result, i.e. if it returns 0, it means
|
|
that the interrupt handler will be called once. */
|
|
int cpu_getiloops(void);
|
|
|
|
|
|
#endif /* __DEPRECAT_H__ */
|