mirror of
https://github.com/holub/mame
synced 2025-05-31 01:51:46 +03:00
added a PPU function eventually needed by MMC5 NES boards. no whatsnew.
This commit is contained in:
parent
a456b3322d
commit
5a3f86829f
@ -1237,6 +1237,13 @@ int ppu2c0x_get_current_scanline( running_device *device )
|
||||
return ppu2c0x->scanline;
|
||||
}
|
||||
|
||||
// MMC5 has to be able to check this
|
||||
int ppu2c0x_is_sprite_8x16( running_device *device )
|
||||
{
|
||||
ppu2c0x_state *ppu2c0x = get_token(device);
|
||||
return BIT(ppu2c0x->regs[0], 5);
|
||||
}
|
||||
|
||||
void ppu2c0x_set_scanline_callback( running_device *device, ppu2c0x_scanline_cb cb )
|
||||
{
|
||||
ppu2c0x_state *ppu2c0x = get_token(device);
|
||||
|
@ -113,6 +113,7 @@ void ppu2c0x_render( running_device *device, bitmap_t *bitmap, int flipx, int fl
|
||||
int ppu2c0x_get_pixel( running_device *device, int x, int y ) ATTR_NONNULL(1);
|
||||
int ppu2c0x_get_colorbase( running_device *device ) ATTR_NONNULL(1);
|
||||
int ppu2c0x_get_current_scanline( running_device *device ) ATTR_NONNULL(1);
|
||||
int ppu2c0x_is_sprite_8x16( running_device *device ) ATTR_NONNULL(1);
|
||||
void ppu2c0x_set_scanline_callback( running_device *device, ppu2c0x_scanline_cb cb ) ATTR_NONNULL(1);
|
||||
void ppu2c0x_set_hblank_callback( running_device *device, ppu2c0x_scanline_cb cb ) ATTR_NONNULL(1);
|
||||
void ppu2c0x_set_vidaccess_callback( running_device *device, ppu2c0x_vidaccess_cb cb ) ATTR_NONNULL(1);
|
||||
|
Loading…
Reference in New Issue
Block a user