Previous 199869 Revisions Next

r31482 Thursday 31st July, 2014 at 19:44:45 UTC by Wilbert Pol
(MESS) sms.c: Restore selected cartridge when loading a save state for the store display unit.  [Enik Land]
[src/emu/video]315_5124.c
[src/mess/drivers]sms.c
[src/mess/includes]sms.h
[src/mess/machine]sms.c

trunk/src/emu/video/315_5124.c
r31481r31482
633633
634634WRITE8_MEMBER( sega315_5124_device::register_write )
635635{
636   int reg_num;
637   int hpos = m_screen->hpos();
636   int reg_num, hpos;
638637
639   check_pending_flags();
640
641638   if (m_pending_reg_write == 0)
642639   {
643640      m_addr = (m_addr & 0xff00) | data;
r31481r31482
670667         if (reg_num == 0 || reg_num == 1)
671668            set_display_settings();
672669
670         hpos = m_screen->hpos();
671
673672         if (reg_num == 1 && hpos <= DISPLAY_DISABLED_HPOS)
674673            m_display_disabled = !(m_reg[0x01] & 0x40);
675674
676675         if (reg_num == 8 && hpos <= X_SCROLL_HPOS)
677676            m_reg8copy = m_reg[0x08];
678677
678         check_pending_flags();
679
679680         if ( ( reg_num == 0 && (m_status & STATUS_HINT) ) ||
680681               ( reg_num == 1 && (m_status & STATUS_VINT) ) )
681682         {
trunk/src/mess/drivers/sms.c
r31481r31482
1717 - Sega Demo Unit II (kiosk expansion device)
1818 - SMS Disk System (floppy disk drive expansion device) - unreleased
1919 - Sega Graphic Board (black version) - unreleased
20 - Rapid button of japanese Master System
20 - Rapid button of Japanese Master System
2121 - Keyboard support for Sega Mark III (sg1000m3 driver)
2222 - Link between two Mark III's through keyboard, supported by F-16 Fighting Falcon
2323 - Mark III expansion slot, used by keyboard and FM module
r31481r31482
985985     - built-in Alex Kidd in Miracle World - 1994 ?
986986     - built-in World Cup Italia '90 (Super Futebol II) - 1994
987987   - Tec Toy Master System Girl (no driver)
988     - built-in Monica no Castelo do Dragao - 199?
988     - built-in Monica no Castelo do Dragao - 1994
989989     - built-in Sonic the Hedgehog (T. Monica em O Resgate pack) - 199?
990990  Notes about BR:
991991   - PAL-M has same frequency and line count of NTSC
trunk/src/mess/machine/sms.c
r31481r31482
8686   m_port_dd_reg &= ~0x08 | (data2 >> 4); // TR (Button 2)
8787
8888   // Sega Mark III does not have TH line connected.
89   // Also, the japanese Master System does not set port $dd with TH input.
89   // Also, the Japanese Master System does not set port $dd with TH input.
9090   if (!m_is_mark_iii && !m_is_smsj)
9191   {
9292      m_port_dd_reg &= ~0x40 | data1; // TH ctrl1
r31481r31482
278278
279279   if (m_is_smsj)
280280   {
281      // For japanese Master System, set upper 4 bits with TH/TR
281      // For Japanese Master System, set upper 4 bits with TH/TR
282282      // direction bits of IO control register, according to Enri's
283283      // docs (http://www43.tok2.com/home/cmpslv/Sms/EnrSms.htm).
284284      // This makes the console incapable of using the Light Phaser.
r31481r31482
814814
815815   if (m_is_sdisp)
816816   {
817      machine().save().register_postload(save_prepost_delegate(FUNC(sms_state::store_post_load), this));
818
817819      save_item(NAME(m_store_control));
818820      save_item(NAME(m_store_cart_selection_data));
819821
r31481r31482
828830         sprintf(str,"slot%i",i + 16 + 1);
829831         m_cards[i] = machine().device<sega8_card_slot_device>(str);
830832      }
831      store_select_cart(m_store_cart_selection_data);
832833   }
833834}
834835
r31481r31482
884885}
885886
886887
888void sms_state::store_post_load()
889{
890   store_select_cart(m_store_cart_selection_data);
891}
892
893
887894// There are two known models of the Store Display Unit:
888895//
889896// - the one with 16 cart slots and 3 card slots;
trunk/src/mess/includes/sms.h
r31481r31482
129129   UINT8 m_store_cart_selection_data;
130130   sega8_cart_slot_device *m_slots[16];
131131   sega8_card_slot_device *m_cards[16];
132   void store_post_load();
132133   void store_select_cart(UINT8 data);
133134
134135   /* Cartridge slot info */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team