mirror of
https://github.com/holub/mame
synced 2025-06-29 23:48:56 +03:00
Passing more running_machine* parameters around
This commit is contained in:
parent
cc5dc262de
commit
4f6b8e9d91
@ -40,7 +40,7 @@ typedef struct {
|
|||||||
int vram_size;
|
int vram_size;
|
||||||
/* interrupt */
|
/* interrupt */
|
||||||
UINT8 INT;
|
UINT8 INT;
|
||||||
void (*INTCallback)(int);
|
void (*INTCallback)(running_machine *, int);
|
||||||
int scanline;
|
int scanline;
|
||||||
/* blinking */
|
/* blinking */
|
||||||
int blink, blink_count;
|
int blink, blink_count;
|
||||||
@ -483,7 +483,7 @@ WRITE8_HANDLER (v9938_1_command_w)
|
|||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
void v9938_init (running_machine *machine, int which, const device_config *screen, bitmap_t *bitmap, int model, int vram_size, void (*callback)(int) )
|
void v9938_init (running_machine *machine, int which, const device_config *screen, bitmap_t *bitmap, int model, int vram_size, void (*callback)(running_machine *, int) )
|
||||||
{
|
{
|
||||||
vdp = &vdps[which];
|
vdp = &vdps[which];
|
||||||
|
|
||||||
@ -610,7 +610,7 @@ static void v9938_check_int (void)
|
|||||||
** called; because of this Mr. Ghost, Xevious and SD Snatcher don't
|
** called; because of this Mr. Ghost, Xevious and SD Snatcher don't
|
||||||
** run. As a patch it's called every scanline
|
** run. As a patch it's called every scanline
|
||||||
*/
|
*/
|
||||||
vdp->INTCallback (n);
|
vdp->INTCallback (Machine, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
void v9938_set_sprite_limit (int which, int i)
|
void v9938_set_sprite_limit (int which, int i)
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#define RENDER_LOW (1)
|
#define RENDER_LOW (1)
|
||||||
#define RENDER_AUTO (2)
|
#define RENDER_AUTO (2)
|
||||||
|
|
||||||
void v9938_init (running_machine *machine, int which, const device_config *screen, bitmap_t *bitmap, int model, int vram_size, void (*callback)(int) );
|
void v9938_init (running_machine *machine, int which, const device_config *screen, bitmap_t *bitmap, int model, int vram_size, void (*callback)(running_machine *, int) );
|
||||||
void v9938_reset (int which);
|
void v9938_reset (int which);
|
||||||
int v9938_interrupt (int which);
|
int v9938_interrupt (int which);
|
||||||
void v9938_set_sprite_limit (int which, int);
|
void v9938_set_sprite_limit (int which, int);
|
||||||
|
@ -271,7 +271,7 @@ static INTERRUPT_GEN( meritm_interrupt )
|
|||||||
v9938_interrupt(1);
|
v9938_interrupt(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void meritm_vdp0_interrupt(int i)
|
static void meritm_vdp0_interrupt(running_machine *machine, int i)
|
||||||
{
|
{
|
||||||
if ( meritm_interrupt_vdp0_state != i )
|
if ( meritm_interrupt_vdp0_state != i )
|
||||||
{
|
{
|
||||||
@ -286,7 +286,7 @@ static void meritm_vdp0_interrupt(int i)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void meritm_vdp1_interrupt(int i)
|
static void meritm_vdp1_interrupt(running_machine *machine, int i)
|
||||||
{
|
{
|
||||||
if ( meritm_interrupt_vdp1_state != i )
|
if ( meritm_interrupt_vdp1_state != i )
|
||||||
{
|
{
|
||||||
|
@ -212,9 +212,9 @@ static MACHINE_RESET(sexyboom)
|
|||||||
sangho_common_machine_reset();
|
sangho_common_machine_reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void msx_vdp_interrupt(int i)
|
static void msx_vdp_interrupt(running_machine *machine, int i)
|
||||||
{
|
{
|
||||||
cpunum_set_input_line (Machine, 0, 0, (i ? HOLD_LINE : CLEAR_LINE));
|
cpunum_set_input_line (machine, 0, 0, (i ? HOLD_LINE : CLEAR_LINE));
|
||||||
}
|
}
|
||||||
|
|
||||||
static INTERRUPT_GEN( sangho_interrupt )
|
static INTERRUPT_GEN( sangho_interrupt )
|
||||||
|
Loading…
Reference in New Issue
Block a user