mirror of
https://github.com/holub/mame
synced 2025-10-07 01:16:22 +03:00
another small antic bit. nw.
This commit is contained in:
parent
397d4bffac
commit
b0aa8a5f16
@ -562,7 +562,7 @@ extern ANTIC antic;
|
|||||||
void antic_start(running_machine &machine);
|
void antic_start(running_machine &machine);
|
||||||
void antic_vstart(running_machine &machine);
|
void antic_vstart(running_machine &machine);
|
||||||
void antic_reset(void);
|
void antic_reset(void);
|
||||||
void antic_render(address_space &space, VIDEO *video, int param1, int param2, int param3);
|
void antic_render(address_space &space, int param1, int param2, int param3);
|
||||||
|
|
||||||
|
|
||||||
#endif /* ATARI_H */
|
#endif /* ATARI_H */
|
||||||
|
@ -1079,8 +1079,9 @@ static const atari_renderer_func renderer[2][19][5] = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void antic_render(address_space &space, VIDEO *video, int param1, int param2, int param3)
|
void antic_render(address_space &space, int param1, int param2, int param3)
|
||||||
{
|
{
|
||||||
|
VIDEO *video = antic.video[antic.scanline];
|
||||||
(*renderer[param1][param2][param3])(space, video);
|
(*renderer[param1][param2][param3])(space, video);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -394,10 +394,9 @@ TIMER_CALLBACK_MEMBER( atari_common_state::antic_scanline_render )
|
|||||||
{
|
{
|
||||||
address_space &space = machine().device("maincpu")->memory().space(AS_PROGRAM);
|
address_space &space = machine().device("maincpu")->memory().space(AS_PROGRAM);
|
||||||
|
|
||||||
VIDEO *video = antic.video[antic.scanline];
|
|
||||||
LOG((" @cycle #%3d render mode $%X lines to go #%d\n", cycle(), (antic.cmd & 0x0f), antic.modelines));
|
LOG((" @cycle #%3d render mode $%X lines to go #%d\n", cycle(), (antic.cmd & 0x0f), antic.modelines));
|
||||||
|
|
||||||
antic_render(space, video, m_antic_render1, m_antic_render2, m_antic_render3);
|
antic_render(space, m_antic_render1, m_antic_render2, m_antic_render3);
|
||||||
|
|
||||||
/* if player/missile graphics is enabled */
|
/* if player/missile graphics is enabled */
|
||||||
if( antic.scanline < 256 && (antic.w.dmactl & (DMA_PLAYER|DMA_MISSILE)) )
|
if( antic.scanline < 256 && (antic.w.dmactl & (DMA_PLAYER|DMA_MISSILE)) )
|
||||||
|
Loading…
Reference in New Issue
Block a user