Previous 199869 Revisions Next

r36340 Monday 9th March, 2015 at 08:41:37 UTC by Vasantha Crabb
Fix class name conflict
[src/mame/drivers]goldstar.c
[src/mame/includes]goldstar.h
[src/mame/video]goldstar.c

trunk/src/mame/drivers/goldstar.c
r244851r244852
257257ADDRESS_MAP_END
258258
259259
260static ADDRESS_MAP_START( star100_map, AS_PROGRAM, 8, sangho_state )
260static ADDRESS_MAP_START( star100_map, AS_PROGRAM, 8, sanghopm_state )
261261   AM_RANGE(0x0000, 0xbfff) AM_ROM
262262
263263   AM_RANGE(0xc800, 0xcfff) AM_RAM_WRITE(fg_vidram_w) AM_SHARE("fg_vidram")    // videoram 1
r244851r244852
290290ADDRESS_MAP_END
291291
292292
293WRITE8_MEMBER(sangho_state::coincount_w)
293WRITE8_MEMBER(sanghopm_state::coincount_w)
294294{
295295/*
296296  7654 3210
r244851r244852
309309   coin_counter_w(machine(), 4, data & 0x01);  /* counter5 payout */
310310}
311311
312WRITE8_MEMBER(sangho_state::enable_w)
312WRITE8_MEMBER(sanghopm_state::enable_w)
313313{
314314   m_enable_reg = data;
315315}
316316
317static ADDRESS_MAP_START( star100_readport, AS_IO, 8, sangho_state )
317static ADDRESS_MAP_START( star100_readport, AS_IO, 8, sanghopm_state )
318318   ADDRESS_MAP_GLOBAL_MASK(0xff)
319319
320320   AM_RANGE(0x08, 0x08) AM_DEVREADWRITE("aysnd", ay8910_device, data_r, data_w)
r244851r244852
75897589MACHINE_CONFIG_END
75907590
75917591
7592static MACHINE_CONFIG_START( star100, sangho_state )
7592static MACHINE_CONFIG_START( star100, sanghopm_state )
75937593
75947594   /* basic machine hardware */
75957595   MCFG_CPU_ADD("maincpu", Z80, CPU_CLOCK)
75967596   MCFG_CPU_PROGRAM_MAP(star100_map)
75977597   MCFG_CPU_IO_MAP(star100_readport)
7598   MCFG_CPU_VBLANK_INT_DRIVER("screen", sangho_state,  irq0_line_hold)
7598   MCFG_CPU_VBLANK_INT_DRIVER("screen", sanghopm_state,  irq0_line_hold)
75997599
76007600   /* video hardware */
76017601   MCFG_SCREEN_ADD("screen", RASTER)
r244851r244852
76037603   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
76047604   MCFG_SCREEN_SIZE(64*8, 32*8)
76057605   MCFG_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1)
7606   MCFG_SCREEN_UPDATE_DRIVER(sangho_state, screen_update_sangho)
7606   MCFG_SCREEN_UPDATE_DRIVER(sanghopm_state, screen_update_sangho)
76077607   MCFG_SCREEN_PALETTE("palette")
76087608
76097609   MCFG_PALETTE_ADD("palette", 0x100)
r244851r244852
76137613
76147614   MCFG_NVRAM_ADD_1FILL("nvram")
76157615
7616   MCFG_VIDEO_START_OVERRIDE(sangho_state, sangho)
7616   MCFG_VIDEO_START_OVERRIDE(sanghopm_state, sangho)
76177617
76187618   /* sound hardware */
76197619   MCFG_SPEAKER_STANDARD_MONO("mono")
trunk/src/mame/includes/goldstar.h
r244851r244852
217217};
218218
219219
220class sangho_state : public goldstar_state
220class sanghopm_state : public goldstar_state
221221{
222222public:
223   sangho_state(const machine_config &mconfig, device_type type, const char *tag) :
223   sanghopm_state(const machine_config &mconfig, device_type type, const char *tag) :
224224      goldstar_state(mconfig, type, tag),
225225      m_reel1_attrram(*this, "reel1_attrram"),
226226      m_reel2_attrram(*this, "reel2_attrram"),
trunk/src/mame/video/goldstar.c
r244851r244852
493493
494494
495495
496WRITE8_MEMBER(sangho_state::fg_vidram_w)
496WRITE8_MEMBER(sanghopm_state::fg_vidram_w)
497497{
498498   m_fg_vidram[offset] = data;
499499   m_fg_tilemap->mark_tile_dirty(offset);
500500}
501501
502WRITE8_MEMBER(sangho_state::fg_atrram_w)
502WRITE8_MEMBER(sanghopm_state::fg_atrram_w)
503503{
504504   m_fg_atrram[offset] = data;
505505   m_fg_tilemap->mark_tile_dirty(offset);
506506}
507507
508WRITE8_MEMBER(sangho_state::bg_vidram_w)
508WRITE8_MEMBER(sanghopm_state::bg_vidram_w)
509509{
510510   m_bg_vidram[offset] = data;
511511   m_bg_tilemap->mark_tile_dirty(offset);
512512}
513513
514WRITE8_MEMBER(sangho_state::bg_atrram_w)
514WRITE8_MEMBER(sanghopm_state::bg_atrram_w)
515515{
516516   m_bg_atrram[offset] = data;
517517   m_bg_tilemap->mark_tile_dirty(offset);
518518}
519519
520WRITE8_MEMBER(sangho_state::reel1_attrram_w)
520WRITE8_MEMBER(sanghopm_state::reel1_attrram_w)
521521{
522522   m_reel1_attrram[offset] = data;
523523   m_reel1_tilemap->mark_tile_dirty(offset);
524524}
525525
526WRITE8_MEMBER(sangho_state::reel2_attrram_w)
526WRITE8_MEMBER(sanghopm_state::reel2_attrram_w)
527527{
528528   m_reel2_attrram[offset] = data;
529529   m_reel2_tilemap->mark_tile_dirty(offset);
530530}
531531
532WRITE8_MEMBER(sangho_state::reel3_attrram_w)
532WRITE8_MEMBER(sanghopm_state::reel3_attrram_w)
533533{
534534   m_reel3_attrram[offset] = data;
535535   m_reel3_tilemap->mark_tile_dirty(offset);
536536}
537537
538538
539TILE_GET_INFO_MEMBER(sangho_state::get_fg_tile_info)
539TILE_GET_INFO_MEMBER(sanghopm_state::get_fg_tile_info)
540540{
541541   int code = m_fg_vidram[tile_index];
542542   int attr = m_fg_atrram[tile_index];
r244851r244852
547547         0);
548548}
549549
550TILE_GET_INFO_MEMBER(sangho_state::get_bg_tile_info)
550TILE_GET_INFO_MEMBER(sanghopm_state::get_bg_tile_info)
551551{
552552   int code = m_bg_vidram[tile_index];
553553   int attr = m_bg_atrram[tile_index];
r244851r244852
558558         0);
559559}
560560
561TILE_GET_INFO_MEMBER(sangho_state::get_reel1_tile_info)
561TILE_GET_INFO_MEMBER(sanghopm_state::get_reel1_tile_info)
562562{
563563   int code = m_reel1_ram[tile_index];
564564   int attr = m_reel1_attrram[tile_index];
r244851r244852
569569         0);
570570}
571571
572TILE_GET_INFO_MEMBER(sangho_state::get_reel2_tile_info)
572TILE_GET_INFO_MEMBER(sanghopm_state::get_reel2_tile_info)
573573{
574574   int code = m_reel2_ram[tile_index];
575575   int attr = m_reel2_attrram[tile_index];
r244851r244852
580580         0);
581581}
582582
583TILE_GET_INFO_MEMBER(sangho_state::get_reel3_tile_info)
583TILE_GET_INFO_MEMBER(sanghopm_state::get_reel3_tile_info)
584584{
585585   int code = m_reel3_ram[tile_index];
586586   int attr = m_reel3_attrram[tile_index];
r244851r244852
592592}
593593
594594
595VIDEO_START_MEMBER(sangho_state, sangho)
595VIDEO_START_MEMBER(sanghopm_state, sangho)
596596{
597   m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(sangho_state::get_bg_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
597   m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(sanghopm_state::get_bg_tile_info),this),TILEMAP_SCAN_ROWS, 8, 32, 64, 8);
598598
599   m_reel1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(sangho_state::get_reel1_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 64, 8);
600   m_reel2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(sangho_state::get_reel2_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 64, 8);
601   m_reel3_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(sangho_state::get_reel3_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 64, 8);
599   m_reel1_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(sanghopm_state::get_reel1_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 64, 8);
600   m_reel2_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(sanghopm_state::get_reel2_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 64, 8);
601   m_reel3_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(sanghopm_state::get_reel3_tile_info),this),TILEMAP_SCAN_ROWS,8,32, 64, 8);
602602
603603   m_reel1_tilemap->set_scroll_cols(64);
604604   m_reel2_tilemap->set_scroll_cols(64);
605605   m_reel3_tilemap->set_scroll_cols(64);
606606
607   m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(sangho_state::get_fg_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
607   m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(sanghopm_state::get_fg_tile_info),this),TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
608608   m_fg_tilemap->set_transparent_pen(0);
609609}
610610
611611
612UINT32 sangho_state::screen_update_sangho(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
612UINT32 sanghopm_state::screen_update_sangho(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
613613{
614614   int i;
615615


Previous 199869 Revisions Next


© 1997-2024 The MAME Team