mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
mastboy.cpp, mastboyo.cpp: private-ize a bit more, grammar police, source clean (nw)
This commit is contained in:
parent
26d3f01402
commit
851db3f827
@ -3,7 +3,7 @@
|
||||
/*
|
||||
Master Boy - Gaelco (c)1991
|
||||
|
||||
this is the 2nd release of Master Boy, the original 1987 game is on different hardware, see mastboyo.cpp for that one
|
||||
this is the 2nd release of Master Boy, the original 1987 game is on different hardware, see mastboyo.cpp for that one
|
||||
|
||||
MAME Driver by David Haywood
|
||||
|
||||
@ -468,6 +468,14 @@ public:
|
||||
, m_vram(*this, "vram")
|
||||
{ }
|
||||
|
||||
void mastboy(machine_config &config);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
virtual void video_start() override;
|
||||
|
||||
private:
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<msm5205_device> m_msm;
|
||||
required_device<ls259_device> m_outlatch;
|
||||
@ -494,14 +502,10 @@ public:
|
||||
DECLARE_READ8_MEMBER(nmi_read);
|
||||
DECLARE_WRITE_LINE_MEMBER(adpcm_int);
|
||||
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
virtual void video_start() override;
|
||||
|
||||
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
||||
INTERRUPT_GEN_MEMBER(interrupt);
|
||||
void mastboy(machine_config &config);
|
||||
|
||||
void bank_c000_map(address_map &map);
|
||||
void mastboy_io_map(address_map &map);
|
||||
void mastboy_map(address_map &map);
|
||||
@ -925,7 +929,7 @@ ROM_START( mastboya )
|
||||
/* 0x1c0000 tt 0x1fffff EMPTY */
|
||||
ROM_END
|
||||
|
||||
/* Is this actually official, or a hack? - I think the internal ROM shouild be different on the Italian sets as it indexes the wrong strings on the startup screens, showing MARK instead of PLAY MARK etc. so marked as BAD_DUMP on these sets */
|
||||
/* Is this actually official, or a hack? - I think the internal ROM should be different on the Italian sets as it indexes the wrong strings on the startup screens, showing MARK instead of PLAY MARK etc. so marked as BAD_DUMP on these sets */
|
||||
ROM_START( mastboyi )
|
||||
ROM_REGION( 0x20000, "maincpu", 0 )
|
||||
ROM_LOAD( "hd647180.bin", 0x00000, 0x4000, BAD_DUMP CRC(75716dd1) SHA1(9b14b9b889b29b6022a3815de95487fb6a720d7a) ) // game code is internal to the CPU!
|
||||
|
@ -29,19 +29,11 @@ public:
|
||||
m_paletterom(*this, "palette")
|
||||
{ }
|
||||
|
||||
DECLARE_WRITE8_MEMBER(fgram_w);
|
||||
DECLARE_WRITE8_MEMBER(fgram2_w);
|
||||
DECLARE_WRITE8_MEMBER(rombank_w);
|
||||
TILE_GET_INFO_MEMBER(get_fg_tile_info);
|
||||
DECLARE_PALETTE_INIT(mastboyo);
|
||||
|
||||
void mastboyo(machine_config &config);
|
||||
void mastboyo_map(address_map &map);
|
||||
void mastboyo_portmap(address_map &map);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
virtual void video_start() override;
|
||||
uint32_t screen_update_mastboyo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
||||
private:
|
||||
tilemap_t *m_fg_tilemap;
|
||||
@ -53,6 +45,16 @@ private:
|
||||
required_memory_bank m_bank1;
|
||||
required_region_ptr<uint8_t> m_questionrom;
|
||||
required_region_ptr<uint8_t> m_paletterom;
|
||||
|
||||
void mastboyo_map(address_map &map);
|
||||
void mastboyo_portmap(address_map &map);
|
||||
|
||||
DECLARE_WRITE8_MEMBER(fgram_w);
|
||||
DECLARE_WRITE8_MEMBER(fgram2_w);
|
||||
DECLARE_WRITE8_MEMBER(rombank_w);
|
||||
TILE_GET_INFO_MEMBER(get_fg_tile_info);
|
||||
uint32_t screen_update_mastboyo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
DECLARE_PALETTE_INIT(mastboyo);
|
||||
};
|
||||
|
||||
TILE_GET_INFO_MEMBER(mastboyo_state::get_fg_tile_info)
|
||||
@ -103,12 +105,12 @@ void mastboyo_state::mastboyo_portmap(address_map &map)
|
||||
|
||||
void mastboyo_state::mastboyo_map(address_map &map)
|
||||
{
|
||||
map(0x0000, 0x3fff).rom();
|
||||
map(0x0000, 0x3fff).rom();
|
||||
map(0x4000, 0x47ff).ram().share("nvram");
|
||||
map(0x5000, 0x53ff).ram().w(this, FUNC(mastboyo_state::fgram_w)).share("fgram");
|
||||
map(0x5400, 0x57ff).ram().w(this, FUNC(mastboyo_state::fgram2_w)).share("fgram2");
|
||||
map(0x6000, 0x6000).w(this, FUNC(mastboyo_state::rombank_w));
|
||||
// map(0x7000, 0x7000).portr("UNK"); // possible watchdog? or IRQ ack?
|
||||
// map(0x7000, 0x7000).portr("UNK"); // possible watchdog? or IRQ ack?
|
||||
map(0x8000, 0xffff).bankr("bank1");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user