mirror of
https://github.com/holub/mame
synced 2025-05-29 00:53:09 +03:00
added sound and some scrolling registers to the sfbonus driver
This commit is contained in:
parent
730803276b
commit
61bfe0e75f
@ -12,6 +12,7 @@ static tilemap *sfbonus_reel_tilemap;
|
||||
static UINT8 *sfbonus_tilemap_ram;
|
||||
static UINT8 *sfbonus_reel_ram;
|
||||
static UINT8* sfbonus_videoram;
|
||||
static UINT8 *sfbonus_vregs;
|
||||
|
||||
static TILE_GET_INFO( get_sfbonus_tile_info )
|
||||
{
|
||||
@ -81,7 +82,15 @@ VIDEO_UPDATE(sfbonus)
|
||||
// int count = 0;
|
||||
// const gfx_element *gfx2 = screen->machine->gfx[1];
|
||||
|
||||
tilemap_set_scrolly(sfbonus_tilemap, 0, (sfbonus_vregs[2] | sfbonus_vregs[3]<<8));
|
||||
tilemap_set_scrolly(sfbonus_reel_tilemap, 0, (sfbonus_vregs[6] | sfbonus_vregs[7]<<8));
|
||||
|
||||
tilemap_draw(bitmap,cliprect,sfbonus_tilemap,0,0);
|
||||
tilemap_draw(bitmap,cliprect,sfbonus_reel_tilemap,0,0);
|
||||
|
||||
// popmessage("%02x %02x %02x %02x %02x %02x %02x %02x %d",sfbonus_vregs[0+test_vregs],sfbonus_vregs[1+test_vregs],sfbonus_vregs[2+test_vregs],
|
||||
// sfbonus_vregs[3+test_vregs],sfbonus_vregs[4+test_vregs],sfbonus_vregs[5+test_vregs],sfbonus_vregs[6+test_vregs],sfbonus_vregs[7+test_vregs],test_vregs);
|
||||
|
||||
/*
|
||||
for (y=0;y<32;y++)
|
||||
{
|
||||
@ -163,11 +172,11 @@ static ADDRESS_MAP_START( sfbonus_io, ADDRESS_SPACE_IO, 8 )
|
||||
|
||||
AM_RANGE(0x0438, 0x0438) AM_READ_PORT("IN3")
|
||||
|
||||
AM_RANGE(0x0800, 0x0800) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x0800, 0x0800) AM_DEVREADWRITE(SOUND, "oki", okim6295_r, okim6295_w)
|
||||
|
||||
AM_RANGE(0x0c00, 0x0c03) AM_WRITE( paletteram_io_w )
|
||||
|
||||
AM_RANGE(0x2400, 0x241f) AM_RAM
|
||||
AM_RANGE(0x2400, 0x241f) AM_RAM AM_BASE(&sfbonus_vregs)
|
||||
|
||||
AM_RANGE(0x2800, 0x2800) AM_READ(sfbonus_unk_r)
|
||||
AM_RANGE(0x2801, 0x2801) AM_READ(sfbonus_unk_r) AM_WRITE(SMH_NOP)
|
||||
@ -359,11 +368,11 @@ static MACHINE_DRIVER_START( sfbonus )
|
||||
MDRV_VIDEO_START(sfbonus)
|
||||
MDRV_VIDEO_UPDATE(sfbonus)
|
||||
|
||||
// MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
// MDRV_SOUND_ADD("oki", OKIM6295, 1000000)
|
||||
// MDRV_SOUND_CONFIG(okim6295_interface_pin7high) // clock frequency & pin 7 not verified
|
||||
// MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.47)
|
||||
// MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.47)
|
||||
MDRV_SPEAKER_STANDARD_STEREO("left", "right")
|
||||
MDRV_SOUND_ADD("oki", OKIM6295, 1000000)
|
||||
MDRV_SOUND_CONFIG(okim6295_interface_pin7high) // clock frequency & pin 7 not verified
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.47)
|
||||
MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.47)
|
||||
MACHINE_DRIVER_END
|
||||
|
||||
// the gfx2 roms might be swapped on these sets
|
||||
|
Loading…
Reference in New Issue
Block a user