Previous 199869 Revisions Next

r37208 Thursday 16th April, 2015 at 16:20:18 UTC by Osso
murogem.c, murogmbl.c: enabled save state support (nw)
[src/mame/drivers]murogem.c murogmbl.c

trunk/src/mame/drivers/murogem.c
r245719r245720
8484- Added "Las Vegas, Nevada" (hack).
8585- Added the missing 74s288 dump (32x8 PROM located at 1B) from the new set.
8686- Confirmed the MC6845 at $4000/$4001.
87- Corrected screen size acording to MC6845 registers.
88- Corrected visible area acording to MC6845 registers. The last characters line looks odd, but should be visible.
87- Corrected screen size according to MC6845 registers.
88- Corrected visible area according to MC6845 registers. The last characters line looks odd, but should be visible.
8989- There are not illegal opcodes. The above mentioned are in fact strings (plain ASCII text).
9090
9191MC6845 registers:
r245719r245720
115115public:
116116   murogem_state(const machine_config &mconfig, device_type type, const char *tag)
117117      : driver_device(mconfig, type, tag),
118      m_videoram(*this, "videoram"),
119118      m_maincpu(*this, "maincpu"),
120119      m_dac(*this, "dac"),
121120      m_gfxdecode(*this, "gfxdecode"),
122      m_palette(*this, "palette")  { }
121      m_palette(*this, "palette"),
122      m_videoram(*this, "videoram") { }
123123
124   required_shared_ptr<UINT8> m_videoram;
125   DECLARE_WRITE8_MEMBER(outport_w);
126   DECLARE_PALETTE_INIT(murogem);
127   UINT32 screen_update_murogem(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
128124   required_device<cpu_device> m_maincpu;
129125   required_device<dac_device> m_dac;
130126   required_device<gfxdecode_device> m_gfxdecode;
131127   required_device<palette_device> m_palette;
128
129   required_shared_ptr<UINT8> m_videoram;
130
131   DECLARE_WRITE8_MEMBER(outport_w);
132   DECLARE_PALETTE_INIT(murogem);
133
134   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
132135};
133136
134137
r245719r245720
211214PALETTE_INIT_MEMBER(murogem_state, murogem)
212215{}
213216
214UINT32 murogem_state::screen_update_murogem(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
217UINT32 murogem_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
215218{
216219   int xx,yy,count;
217220   count = 0x000;
r245719r245720
249252   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
250253   MCFG_SCREEN_SIZE((39+1)*8, (38+1)*8)
251254   MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1)
252   MCFG_SCREEN_UPDATE_DRIVER(murogem_state, screen_update_murogem)
255   MCFG_SCREEN_UPDATE_DRIVER(murogem_state, screen_update)
253256   MCFG_SCREEN_PALETTE("palette")
254257
255258   MCFG_GFXDECODE_ADD("gfxdecode", "palette", murogem)
r245719r245720
323326   ROM_LOAD( "a3.1b", 0x0000, 0x0020, CRC(abddfb6b) SHA1(ed78b93701b5a3bf2053d2584e9a354fb6cec203) )   /* 74s288 at 1B */
324327ROM_END
325328
326GAME( 198?, murogem,  0,       murogem, murogem, driver_device, 0, ROT0, "<unknown>", "Muroge Monaco (set 1)", GAME_WRONG_COLORS )
327GAME( 198?, murogema, murogem, murogem, murogem, driver_device, 0, ROT0, "<unknown>", "Muroge Monaco (set 2)", GAME_WRONG_COLORS )
328GAME( 198?, murogemb, murogem, murogem, murogem, driver_device, 0, ROT0, "<unknown>", "Muroge Monaco (set 3)", GAME_WRONG_COLORS )
329GAME( 198?, lasvegas, murogem, murogem, murogem, driver_device, 0, ROT0, "hack",      "Las Vegas, Nevada",     GAME_WRONG_COLORS )
329GAME( 198?, murogem,  0,       murogem, murogem, driver_device, 0, ROT0, "<unknown>", "Muroge Monaco (set 1)", GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE )
330GAME( 198?, murogema, murogem, murogem, murogem, driver_device, 0, ROT0, "<unknown>", "Muroge Monaco (set 2)", GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE )
331GAME( 198?, murogemb, murogem, murogem, murogem, driver_device, 0, ROT0, "<unknown>", "Muroge Monaco (set 3)", GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE )
332GAME( 198?, lasvegas, murogem, murogem, murogem, driver_device, 0, ROT0, "hack",      "Las Vegas, Nevada",     GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE )
trunk/src/mame/drivers/murogmbl.c
r245719r245720
4545public:
4646   murogmbl_state(const machine_config &mconfig, device_type type, const char *tag)
4747      : driver_device(mconfig, type, tag),
48      m_video(*this, "video"),
4948      m_maincpu(*this, "maincpu"),
5049      m_gfxdecode(*this, "gfxdecode"),
51      m_palette(*this, "palette")  { }
50      m_palette(*this, "palette"),
51      m_video(*this, "video") { }
5252
53   required_device<cpu_device> m_maincpu;
54   required_device<gfxdecode_device> m_gfxdecode;
55   required_device<palette_device> m_palette;
56
5357   required_shared_ptr<UINT8> m_video;
58
5459   virtual void video_start();
5560   DECLARE_PALETTE_INIT(murogmbl);
56   UINT32 screen_update_murogmbl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
57   required_device<cpu_device> m_maincpu;
58   required_device<gfxdecode_device> m_gfxdecode;
59   required_device<palette_device> m_palette;
61
62   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
6063};
6164
6265
r245719r245720
102105{
103106}
104107
105UINT32 murogmbl_state::screen_update_murogmbl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
108UINT32 murogmbl_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
106109{
107110   gfx_element *gfx = m_gfxdecode->gfx(0);
108111   int count = 0;
r245719r245720
201204   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
202205   MCFG_SCREEN_SIZE(64*8, 32*8)
203206   MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1)
204   MCFG_SCREEN_UPDATE_DRIVER(murogmbl_state, screen_update_murogmbl)
207   MCFG_SCREEN_UPDATE_DRIVER(murogmbl_state, screen_update)
205208   MCFG_SCREEN_PALETTE("palette")
206209
207210   MCFG_PALETTE_ADD("palette", 0x100)
r245719r245720
227230   ROM_LOAD( "74s288.a8",  0x0000, 0x0020, CRC(fc35201c) SHA1(4549e228c48992e0d10957f029b89a547392e72b) )
228231ROM_END
229232
230GAME( 1982, murogmbl,  murogem,   murogmbl, murogmbl, driver_device, 0, ROT0, "bootleg?", "Muroge Monaco (bootleg?)", GAME_NO_SOUND )
233GAME( 1982, murogmbl,  murogem,   murogmbl, murogmbl, driver_device, 0, ROT0, "bootleg?", "Muroge Monaco (bootleg?)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE )


Previous 199869 Revisions Next


© 1997-2024 The MAME Team