Previous 199869 Revisions Next

r31612 Monday 11th August, 2014 at 19:06:10 UTC by Wilbert Pol
(MESS) sms.c: Fixed a problem with 4pak that caused no games to play and fixed mapper detection for fire track homebrew (nw)
[src/emu/bus/sega8]rom.c rom.h sega8_slot.c

trunk/src/emu/bus/sega8/rom.h
r31611r31612
259259   virtual void device_reset();
260260
261261   // reading and writing
262   virtual DECLARE_READ8_MEMBER(read_cart);
262263   virtual DECLARE_WRITE8_MEMBER(write_cart);
263264
264265private:
trunk/src/emu/bus/sega8/sega8_slot.c
r31611r31612
520520      LOG(("Mapper test: _0002 = %d, _8000 = %d, _a000 = %d, _ffff = %d\n", _0002, _8000, _a000, _ffff));
521521
522522      // 2 is a security measure, although tests on existing ROM showed it was not needed
523      if (len >= 0x10000 && (_0002 > _ffff + 2 || (_0002 > 0 && _ffff == 0)))
523      if (len > 0x10000 && (_0002 > _ffff + 2 || (_0002 > 0 && _ffff == 0)))
524524      {
525525         type = SEGA8_ZEMINA;
526526
trunk/src/emu/bus/sega8/rom.c
r31611r31612
792792 -------------------------------------------------*/
793793
794794
795READ8_MEMBER(sega8_4pak_device::read_cart)
796{
797   int bank = offset / 0x4000;
798
799    return m_rom[m_rom_bank_base[bank] * 0x4000 + (offset & 0x3fff)];
800}
801
802
795803WRITE8_MEMBER(sega8_4pak_device::write_cart)
796804{
797805   switch (offset)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team