Previous 199869 Revisions Next

r34965 Wednesday 11th February, 2015 at 16:44:22 UTC by Osso
gladiatr.c: added save state support (nw)
[src/mame/drivers]gladiatr.c
[src/mame/includes]gladiatr.h
[src/mame/video]gladiatr.c

trunk/src/mame/drivers/gladiatr.c
r243476r243477
99          input port patches, panning fix, sprite banking,
1010          Golden Castle Rom Set Support
1111- Phil Stroffolino: palette, sprites, misc video driver fixes
12- Tatsuyuki Satoh: YM2203 sound improvements, NEC 8741 simulation,ADPCM with MC6809
12- Tatsuyuki Satoh: YM2203 sound improvements, NEC 8741 simulation, ADPCM with MC6809
1313- Tomasz Slanina   preliminary Ping Pong King driver
1414- Nicola Salmoria  clean up
1515
r243476r243477
1717- Camilty for precious hardware information and screenshots
1818- Jason Richmond for hardware information and misc. notes
1919- Joe Rounceville for schematics
20- and everyone else who'se offered support along the way!
20- and everyone else who's offered support along the way!
2121
2222
2323***************************************************************************
r243476r243477
268268}
269269
270270/*Sound Functions*/
271WRITE8_MEMBER(gladiatr_state::glad_adpcm_w)
271WRITE8_MEMBER(gladiatr_state::gladiator_adpcm_w)
272272{
273273   UINT8 *rom = memregion("audiocpu")->base() + 0x10000;
274274
r243476r243477
280280   m_msm->vclk_w (BIT(data, 4)); /* bit4     */
281281}
282282
283WRITE8_MEMBER(gladiatr_state::glad_cpu_sound_command_w)
283WRITE8_MEMBER(gladiatr_state::gladiator_cpu_sound_command_w)
284284{
285285   soundlatch_byte_w(space,0,data);
286286   m_audiocpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
287287}
288288
289READ8_MEMBER(gladiatr_state::glad_cpu_sound_command_r)
289READ8_MEMBER(gladiatr_state::gladiator_cpu_sound_command_r)
290290{
291291   m_audiocpu->set_input_line(INPUT_LINE_NMI, CLEAR_LINE);
292292   return soundlatch_byte_r(space,0);
r243476r243477
299299
300300
301301#if 1
302/* !!!!! patch to IRQ timming for 2nd CPU !!!!! */
302/* !!!!! patch to IRQ timing for 2nd CPU !!!!! */
303303WRITE8_MEMBER(gladiatr_state::gladiatr_irq_patch_w)
304304{
305305   m_subcpu->set_input_line(0, HOLD_LINE);
r243476r243477
312312
313313
314314
315WRITE8_MEMBER(gladiatr_state::qx0_w)
315WRITE8_MEMBER(gladiatr_state::ppking_qx0_w)
316316{
317317   if(!offset)
318318   {
r243476r243477
321321   }
322322}
323323
324WRITE8_MEMBER(gladiatr_state::qx1_w)
324WRITE8_MEMBER(gladiatr_state::ppking_qx1_w)
325325{
326326   if(!offset)
327327   {
r243476r243477
330330   }
331331}
332332
333WRITE8_MEMBER(gladiatr_state::qx2_w){ }
333WRITE8_MEMBER(gladiatr_state::ppking_qx2_w){ }
334334
335WRITE8_MEMBER(gladiatr_state::qx3_w){ }
335WRITE8_MEMBER(gladiatr_state::ppking_qx3_w){ }
336336
337READ8_MEMBER(gladiatr_state::qx2_r){ return machine().rand(); }
337READ8_MEMBER(gladiatr_state::ppking_qx2_r){ return machine().rand(); }
338338
339READ8_MEMBER(gladiatr_state::qx3_r){ return machine().rand()&0xf; }
339READ8_MEMBER(gladiatr_state::ppking_qx3_r){ return machine().rand()&0xf; }
340340
341READ8_MEMBER(gladiatr_state::qx0_r)
341READ8_MEMBER(gladiatr_state::ppking_qx0_r)
342342{
343343   if(!offset)
344344         return m_data1;
r243476r243477
346346      return m_flag2;
347347}
348348
349READ8_MEMBER(gladiatr_state::qx1_r)
349READ8_MEMBER(gladiatr_state::ppking_qx1_r)
350350{
351351   if(!offset)
352352      return m_data2;
r243476r243477
364364   AM_RANGE(0x0000, 0xbfff) AM_ROM
365365   AM_RANGE(0xc000, 0xcbff) AM_RAM AM_SHARE("spriteram")
366366   AM_RANGE(0xcc00, 0xcfff) AM_WRITE(ppking_video_registers_w)
367   AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(gladiatr_paletteram_w) AM_SHARE("paletteram")
368   AM_RANGE(0xd800, 0xdfff) AM_RAM_WRITE(gladiatr_videoram_w) AM_SHARE("videoram")
369   AM_RANGE(0xe000, 0xe7ff) AM_RAM_WRITE(gladiatr_colorram_w) AM_SHARE("colorram")
370   AM_RANGE(0xe800, 0xefff) AM_RAM_WRITE(gladiatr_textram_w) AM_SHARE("textram")
367   AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(paletteram_w) AM_SHARE("paletteram")
368   AM_RANGE(0xd800, 0xdfff) AM_RAM_WRITE(videoram_w) AM_SHARE("videoram")
369   AM_RANGE(0xe000, 0xe7ff) AM_RAM_WRITE(colorram_w) AM_SHARE("colorram")
370   AM_RANGE(0xe800, 0xefff) AM_RAM_WRITE(textram_w) AM_SHARE("textram")
371371   AM_RANGE(0xf000, 0xf7ff) AM_RAM AM_SHARE("nvram") /* battery backed RAM */
372372ADDRESS_MAP_END
373373
r243476r243477
379379
380380static ADDRESS_MAP_START( ppking_cpu1_io, AS_IO, 8, gladiatr_state )
381381//  ADDRESS_MAP_GLOBAL_MASK(0xff)
382   AM_RANGE(0xc000, 0xc000) AM_WRITE(gladiatr_spritebuffer_w)
382   AM_RANGE(0xc000, 0xc000) AM_WRITE(spritebuffer_w)
383383   AM_RANGE(0xc004, 0xc004) AM_NOP // WRITE(ppking_irq_patch_w)
384   AM_RANGE(0xc09e, 0xc09f) AM_READ(qx0_r) AM_WRITE(qx0_w)
384   AM_RANGE(0xc09e, 0xc09f) AM_READ(ppking_qx0_r) AM_WRITE(ppking_qx0_w)
385385   AM_RANGE(0xc0bf, 0xc0bf) AM_NOP
386386ADDRESS_MAP_END
387387
388388static ADDRESS_MAP_START( ppking_cpu2_io, AS_IO, 8, gladiatr_state )
389389   ADDRESS_MAP_GLOBAL_MASK(0xff)
390390   AM_RANGE(0x00, 0x01) AM_DEVREADWRITE("ymsnd", ym2203_device, read, write)
391   AM_RANGE(0x20, 0x21) AM_READ(qx1_r) AM_WRITE(qx1_w)
391   AM_RANGE(0x20, 0x21) AM_READ(ppking_qx1_r) AM_WRITE(ppking_qx1_w)
392392   AM_RANGE(0x40, 0x40) AM_READNOP
393   AM_RANGE(0x60, 0x61) AM_READWRITE(qx2_r,qx2_w)
394   AM_RANGE(0x80, 0x81) AM_READWRITE(qx3_r,qx3_w)
393   AM_RANGE(0x60, 0x61) AM_READWRITE(ppking_qx2_r,ppking_qx2_w)
394   AM_RANGE(0x80, 0x81) AM_READWRITE(ppking_qx3_r,ppking_qx3_w)
395395ADDRESS_MAP_END
396396
397397
r243476r243477
402402   AM_RANGE(0x6000, 0xbfff) AM_ROMBANK("bank1")
403403   AM_RANGE(0xc000, 0xcbff) AM_RAM AM_SHARE("spriteram")
404404   AM_RANGE(0xcc00, 0xcfff) AM_WRITE(gladiatr_video_registers_w)
405   AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(gladiatr_paletteram_w) AM_SHARE("paletteram")
406   AM_RANGE(0xd800, 0xdfff) AM_RAM_WRITE(gladiatr_videoram_w) AM_SHARE("videoram")
407   AM_RANGE(0xe000, 0xe7ff) AM_RAM_WRITE(gladiatr_colorram_w) AM_SHARE("colorram")
408   AM_RANGE(0xe800, 0xefff) AM_RAM_WRITE(gladiatr_textram_w) AM_SHARE("textram")
405   AM_RANGE(0xd000, 0xd7ff) AM_RAM_WRITE(paletteram_w) AM_SHARE("paletteram")
406   AM_RANGE(0xd800, 0xdfff) AM_RAM_WRITE(videoram_w) AM_SHARE("videoram")
407   AM_RANGE(0xe000, 0xe7ff) AM_RAM_WRITE(colorram_w) AM_SHARE("colorram")
408   AM_RANGE(0xe800, 0xefff) AM_RAM_WRITE(textram_w) AM_SHARE("textram")
409409   AM_RANGE(0xf000, 0xf7ff) AM_RAM AM_SHARE("nvram") /* battery backed RAM */
410410ADDRESS_MAP_END
411411
r243476r243477
415415ADDRESS_MAP_END
416416
417417static ADDRESS_MAP_START( gladiatr_cpu3_map, AS_PROGRAM, 8, gladiatr_state )
418   AM_RANGE(0x1000, 0x1fff) AM_WRITE(glad_adpcm_w)
419   AM_RANGE(0x2000, 0x2fff) AM_READ(glad_cpu_sound_command_r)
418   AM_RANGE(0x1000, 0x1fff) AM_WRITE(gladiator_adpcm_w)
419   AM_RANGE(0x2000, 0x2fff) AM_READ(gladiator_cpu_sound_command_r)
420420   AM_RANGE(0x4000, 0xffff) AM_ROMBANK("bank2")
421421ADDRESS_MAP_END
422422
423423
424424static ADDRESS_MAP_START( gladiatr_cpu1_io, AS_IO, 8, gladiatr_state )
425425//  ADDRESS_MAP_GLOBAL_MASK(0xff)
426   AM_RANGE(0xc000, 0xc000) AM_WRITE(gladiatr_spritebuffer_w)
426   AM_RANGE(0xc000, 0xc000) AM_WRITE(spritebuffer_w)
427427   AM_RANGE(0xc001, 0xc001) AM_WRITE(gladiatr_spritebank_w)
428428   AM_RANGE(0xc002, 0xc002) AM_WRITE(gladiatr_bankswitch_w)
429429   AM_RANGE(0xc004, 0xc004) AM_WRITE(gladiatr_irq_patch_w) /* !!! patch to 2nd CPU IRQ !!! */
r243476r243477
440440   AM_RANGE(0x60, 0x61) AM_DEVREADWRITE("taito8741", taito8741_4pack_device, read_2, write_2)
441441   AM_RANGE(0x80, 0x81) AM_DEVREADWRITE("taito8741", taito8741_4pack_device, read_3, write_3)
442442   AM_RANGE(0xa0, 0xa7) AM_NOP // filters on sound output
443   AM_RANGE(0xe0, 0xe0) AM_WRITE(glad_cpu_sound_command_w)
443   AM_RANGE(0xe0, 0xe0) AM_WRITE(gladiator_cpu_sound_command_w)
444444ADDRESS_MAP_END
445445
446446
r243476r243477
611611
612612
613613
614READ8_MEMBER(gladiatr_state::f1_r)
614READ8_MEMBER(gladiatr_state::ppking_f1_r)
615615{
616616   return machine().rand();
617617}
r243476r243477
655655   MCFG_SPEAKER_STANDARD_MONO("mono")
656656
657657   MCFG_SOUND_ADD("ymsnd", YM2203, XTAL_12MHz/8) /* verified on pcb */
658   MCFG_AY8910_PORT_A_READ_CB(READ8(gladiatr_state, f1_r))
659   MCFG_AY8910_PORT_B_READ_CB(READ8(gladiatr_state, f1_r))
658   MCFG_AY8910_PORT_A_READ_CB(READ8(gladiatr_state, ppking_f1_r))
659   MCFG_AY8910_PORT_B_READ_CB(READ8(gladiatr_state, ppking_f1_r))
660660   MCFG_SOUND_ROUTE(0, "mono", 0.60)
661661   MCFG_SOUND_ROUTE(1, "mono", 0.60)
662662   MCFG_SOUND_ROUTE(2, "mono", 0.60)
r243476r243477
10011001}
10021002
10031003
1004READ8_MEMBER(gladiatr_state::f6a3_r)
1004READ8_MEMBER(gladiatr_state::ppking_f6a3_r)
10051005{
10061006   if(space.device().safe_pcbase()==0x8e)
10071007      m_nvram[0x6a3]=1;
r243476r243477
10311031         rom[i+2*j*0x2000] = rom[i+j*0x2000];
10321032      }
10331033   }
1034   m_maincpu->space(AS_PROGRAM).install_read_handler(0xf6a3,0xf6a3,read8_delegate(FUNC(gladiatr_state::f6a3_r),this));
1034   m_maincpu->space(AS_PROGRAM).install_read_handler(0xf6a3,0xf6a3,read8_delegate(FUNC(gladiatr_state::ppking_f6a3_r),this));
1035   
1036   save_item(NAME(m_data1));
1037   save_item(NAME(m_data2));
10351038}
10361039
10371040
10381041
1039GAME( 1985, ppking,   0,        ppking,   0,        gladiatr_state, ppking,   ROT90, "Taito America Corporation", "Ping-Pong King", GAME_NOT_WORKING)
1040GAME( 1986, gladiatr, 0,        gladiatr, gladiatr, gladiatr_state, gladiatr, ROT0,  "Allumer / Taito America Corporation", "Gladiator (US)", 0 )
1041GAME( 1986, ogonsiro, gladiatr, gladiatr, gladiatr, gladiatr_state, gladiatr, ROT0,  "Allumer / Taito Corporation", "Ougon no Shiro (Japan)", 0 )
1042GAME( 1986, greatgur, gladiatr, gladiatr, gladiatr, gladiatr_state, gladiatr, ROT0,  "Allumer / Taito Corporation", "Great Gurianos (Japan?)", 0 )
1043GAME( 1986, gcastle,  gladiatr, gladiatr, gladiatr, gladiatr_state, gladiatr, ROT0,  "Allumer / Taito Corporation", "Golden Castle (prototype?)", 0 ) // incomplete dump
1042GAME( 1985, ppking,   0,        ppking,   0,        gladiatr_state, ppking,   ROT90, "Taito America Corporation", "Ping-Pong King", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
1043GAME( 1986, gladiatr, 0,        gladiatr, gladiatr, gladiatr_state, gladiatr, ROT0,  "Allumer / Taito America Corporation", "Gladiator (US)", GAME_SUPPORTS_SAVE )
1044GAME( 1986, ogonsiro, gladiatr, gladiatr, gladiatr, gladiatr_state, gladiatr, ROT0,  "Allumer / Taito Corporation", "Ougon no Shiro (Japan)", GAME_SUPPORTS_SAVE )
1045GAME( 1986, greatgur, gladiatr, gladiatr, gladiatr, gladiatr_state, gladiatr, ROT0,  "Allumer / Taito Corporation", "Great Gurianos (Japan?)", GAME_SUPPORTS_SAVE )
1046GAME( 1986, gcastle,  gladiatr, gladiatr, gladiatr, gladiatr_state, gladiatr, ROT0,  "Allumer / Taito Corporation", "Golden Castle (prototype?)", GAME_SUPPORTS_SAVE ) // incomplete dump
trunk/src/mame/includes/gladiatr.h
r243476r243477
55public:
66   gladiatr_state(const machine_config &mconfig, device_type type, const char *tag)
77      : driver_device(mconfig, type, tag),
8         m_nvram(*this, "nvram") ,
9      m_spriteram(*this, "spriteram"),
10      m_videoram(*this, "videoram"),
11      m_colorram(*this, "colorram"),
12      m_textram(*this, "textram"),
138      m_maincpu(*this, "maincpu"),
149      m_audiocpu(*this, "audiocpu"),
1510      m_subcpu(*this, "sub"),
1611      m_msm(*this, "msm"),
1712      m_gfxdecode(*this, "gfxdecode"),
1813      m_palette(*this, "palette"),
19      m_generic_paletteram_8(*this, "paletteram") { }
14      m_nvram(*this, "nvram") ,
15      m_spriteram(*this, "spriteram"),
16      m_videoram(*this, "videoram"),
17      m_colorram(*this, "colorram"),
18      m_textram(*this, "textram"),
19      m_generic_paletteram_8(*this, "paletteram")   { }
20   
21   required_device<cpu_device> m_maincpu;
22   required_device<cpu_device> m_audiocpu;
23   required_device<cpu_device> m_subcpu;
24   required_device<msm5205_device> m_msm;
25   required_device<gfxdecode_device> m_gfxdecode;
26   required_device<palette_device> m_palette;
2027
21   required_shared_ptr<UINT8> m_nvram;
28   required_shared_ptr<UINT8> m_nvram;
2229   required_shared_ptr<UINT8> m_spriteram;
2330   required_shared_ptr<UINT8> m_videoram;
2431   required_shared_ptr<UINT8> m_colorram;
2532   required_shared_ptr<UINT8> m_textram;
33   required_shared_ptr<UINT8> m_generic_paletteram_8;
2634
2735   int m_data1;
2836   int m_data2;
r243476r243477
4048   int m_fg_tile_bank;
4149   int m_bg_tile_bank;
4250
51   // common
52   DECLARE_WRITE8_MEMBER(videoram_w);
53   DECLARE_WRITE8_MEMBER(colorram_w);
54   DECLARE_WRITE8_MEMBER(textram_w);
55   DECLARE_WRITE8_MEMBER(paletteram_w);
56   DECLARE_WRITE8_MEMBER(spritebuffer_w);
4357
44   DECLARE_READ8_MEMBER( gladiator_dsw1_r );
45   DECLARE_READ8_MEMBER( gladiator_dsw2_r );
46   DECLARE_READ8_MEMBER( gladiator_controls_r );
47   DECLARE_READ8_MEMBER( gladiator_button3_r );
48   DECLARE_WRITE8_MEMBER(gladiatr_videoram_w);
49   DECLARE_WRITE8_MEMBER(gladiatr_colorram_w);
50   DECLARE_WRITE8_MEMBER(gladiatr_textram_w);
51   DECLARE_WRITE8_MEMBER(gladiatr_paletteram_w);
52   DECLARE_WRITE8_MEMBER(gladiatr_spritebuffer_w);
58   // gladiator specific
59   DECLARE_READ8_MEMBER(gladiator_dsw1_r);
60   DECLARE_READ8_MEMBER(gladiator_dsw2_r);
61   DECLARE_READ8_MEMBER(gladiator_controls_r);
62   DECLARE_READ8_MEMBER(gladiator_button3_r);
5363   DECLARE_WRITE8_MEMBER(gladiatr_spritebank_w);
54   DECLARE_WRITE8_MEMBER(ppking_video_registers_w);
5564   DECLARE_WRITE8_MEMBER(gladiatr_video_registers_w);
5665   DECLARE_WRITE8_MEMBER(gladiatr_bankswitch_w);
57   DECLARE_WRITE8_MEMBER(glad_cpu_sound_command_w);
58   DECLARE_READ8_MEMBER(glad_cpu_sound_command_r);
66   DECLARE_WRITE8_MEMBER(gladiator_cpu_sound_command_w);
67   DECLARE_READ8_MEMBER(gladiator_cpu_sound_command_r);
5968   DECLARE_WRITE8_MEMBER(gladiatr_flipscreen_w);
6069   DECLARE_WRITE8_MEMBER(gladiatr_irq_patch_w);
61   DECLARE_WRITE8_MEMBER(qx0_w);
62   DECLARE_WRITE8_MEMBER(qx1_w);
63   DECLARE_WRITE8_MEMBER(qx2_w);
64   DECLARE_WRITE8_MEMBER(qx3_w);
65   DECLARE_READ8_MEMBER(qx2_r);
66   DECLARE_READ8_MEMBER(qx3_r);
67   DECLARE_READ8_MEMBER(qx0_r);
68   DECLARE_READ8_MEMBER(qx1_r);
69   DECLARE_READ8_MEMBER(f6a3_r);
7070   DECLARE_WRITE8_MEMBER(gladiator_int_control_w);
71   DECLARE_WRITE8_MEMBER(glad_adpcm_w);
72   DECLARE_READ8_MEMBER(f1_r);
71   DECLARE_WRITE8_MEMBER(gladiator_adpcm_w);
72   DECLARE_WRITE_LINE_MEMBER(gladiator_ym_irq);
73   
74   // ppking specific
75   DECLARE_READ8_MEMBER(ppking_f1_r);
76   DECLARE_READ8_MEMBER(ppking_f6a3_r);
77   DECLARE_WRITE8_MEMBER(ppking_qx0_w);
78   DECLARE_WRITE8_MEMBER(ppking_qx1_w);
79   DECLARE_WRITE8_MEMBER(ppking_qx2_w);
80   DECLARE_WRITE8_MEMBER(ppking_qx3_w);
81   DECLARE_READ8_MEMBER(ppking_qx2_r);
82   DECLARE_READ8_MEMBER(ppking_qx3_r);
83   DECLARE_READ8_MEMBER(ppking_qx0_r);
84   DECLARE_READ8_MEMBER(ppking_qx1_r);
85   DECLARE_WRITE8_MEMBER(ppking_video_registers_w);
86   
7387   DECLARE_DRIVER_INIT(gladiatr);
7488   DECLARE_DRIVER_INIT(ppking);
89   
7590   TILE_GET_INFO_MEMBER(bg_get_tile_info);
7691   TILE_GET_INFO_MEMBER(fg_get_tile_info);
92
7793   DECLARE_MACHINE_RESET(ppking);
7894   DECLARE_VIDEO_START(ppking);
7995   DECLARE_MACHINE_RESET(gladiator);
8096   DECLARE_VIDEO_START(gladiatr);
97   
8198   UINT32 screen_update_ppking(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
8299   UINT32 screen_update_gladiatr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
83100   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
84101   void swap_block(UINT8 *src1,UINT8 *src2,int len);
85   DECLARE_WRITE_LINE_MEMBER(gladiator_ym_irq);
86   required_device<cpu_device> m_maincpu;
87   required_device<cpu_device> m_audiocpu;
88   required_device<cpu_device> m_subcpu;
89   required_device<msm5205_device> m_msm;
90   required_device<gfxdecode_device> m_gfxdecode;
91   required_device<palette_device> m_palette;
92   required_shared_ptr<UINT8> m_generic_paletteram_8;
93102};
trunk/src/mame/video/gladiatr.c
r243476r243477
5050   m_bg_tilemap->set_scroll_cols(0x10);
5151
5252   m_sprite_bank = 1;
53   
54   save_item(NAME(m_video_attributes));
55   save_item(NAME(m_fg_scrolly));
56   save_item(NAME(m_sprite_buffer));
57   save_item(NAME(m_fg_tile_bank));
5358}
5459
5560VIDEO_START_MEMBER(gladiatr_state,gladiatr)
r243476r243477
6368   m_fg_tilemap->set_scrolldx(-0x30, 0x12f);
6469
6570   m_sprite_bank = 2;
71   
72   save_item(NAME(m_video_attributes));
73   save_item(NAME(m_fg_scrollx));
74   save_item(NAME(m_fg_scrolly));
75   save_item(NAME(m_bg_scrollx));
76   save_item(NAME(m_bg_scrolly));
77   save_item(NAME(m_sprite_bank));
78   save_item(NAME(m_sprite_buffer));
79   save_item(NAME(m_fg_tile_bank));
80   save_item(NAME(m_bg_tile_bank));
6681}
6782
6883
r243476r243477
7388
7489***************************************************************************/
7590
76WRITE8_MEMBER(gladiatr_state::gladiatr_videoram_w)
91WRITE8_MEMBER(gladiatr_state::videoram_w)
7792{
7893   m_videoram[offset] = data;
7994   m_bg_tilemap->mark_tile_dirty(offset);
8095}
8196
82WRITE8_MEMBER(gladiatr_state::gladiatr_colorram_w)
97WRITE8_MEMBER(gladiatr_state::colorram_w)
8398{
8499   m_colorram[offset] = data;
85100   m_bg_tilemap->mark_tile_dirty(offset);
86101}
87102
88WRITE8_MEMBER(gladiatr_state::gladiatr_textram_w)
103WRITE8_MEMBER(gladiatr_state::textram_w)
89104{
90105   m_textram[offset] = data;
91106   m_fg_tilemap->mark_tile_dirty(offset);
92107}
93108
94WRITE8_MEMBER(gladiatr_state::gladiatr_paletteram_w)
109WRITE8_MEMBER(gladiatr_state::paletteram_w)
95110{
96111   int r,g,b;
97112
r243476r243477
110125}
111126
112127
113WRITE8_MEMBER(gladiatr_state::gladiatr_spritebuffer_w)
128WRITE8_MEMBER(gladiatr_state::spritebuffer_w)
114129{
115130   m_sprite_buffer = data & 1;
116131}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team