Previous 15994 Revisions Next

r14971 Friday 20th April, 2012 at 00:33:48 UTC by R. Belmont
Apple II: Added state registration to cards.
[src/mess/machine]a2cffa.c a2memexp.c a2mockingboard.c a2scsi.c a2scsi.h a2softcard.c a2softcard.h a2thunderclock.c

src/mess/machine/a2mockingboard.c
r14970r14971
111111{
112112   // set_a2bus_device makes m_slot valid
113113   set_a2bus_device();
114
115   save_item(NAME(m_porta1));
116   save_item(NAME(m_porta2));
114117}
115118
116119void a2bus_mockingboard_device::device_reset()
src/mess/machine/a2softcard.c
r14970r14971
7575{
7676   // set_a2bus_device makes m_slot valid
7777   set_a2bus_device();
78
79   save_item(NAME(m_bEnabled));
80   save_item(NAME(m_FirstZ80Boot));
7881}
7982
8083void a2bus_softcard_device::device_reset()
src/mess/machine/a2softcard.h
r14970r14971
22
33    a2softcard.h
44
5    Implementation of the Apple II Memory Expansion Card
5    Implementation of the Microsoft SoftCard Z-80 card
66
77*********************************************************************/
88
src/mess/machine/a2scsi.c
r14970r14971
115115   m_rom = device().machine().region(this->subtag(tempstring, SCSI_ROM_REGION))->base();
116116
117117    memset(m_ram, 0, 8192);
118
119   save_item(NAME(m_ram));
120   save_item(NAME(m_rambank));
121   save_item(NAME(m_rombank));
118122}
119123
120124void a2bus_scsi_device::device_reset()
src/mess/machine/a2scsi.h
r14970r14971
22
33    a2scsi.h
44
5    Implementation of the Apple II Memory Expansion Card
5    Implementation of the Apple II SCSI Card
66
77*********************************************************************/
88
src/mess/machine/a2cffa.c
r14970r14971
113113
114114   // patch default setting so slave device is enabled
115115   m_rom[0x801] = 4;
116
117   save_item(NAME(m_lastdata));
118   save_item(NAME(m_writeprotect));
119   save_item(NAME(m_eeprom));
116120}
117121
118122void a2bus_cffa2000_device::device_reset()
r14970r14971
222226{
223227   if (!m_writeprotect)
224228   {
225      printf("Write %02x to EEPROM at %x\n", data, offset);
229//      printf("Write %02x to EEPROM at %x (PC=%x)\n", data, offset, cpu_get_pc(&space.device()));
226230      m_eeprom[offset + 0x800] = data;
227231   }
228232}
src/mess/machine/a2thunderclock.c
r14970r14971
107107
108108   astring tempstring;
109109   m_rom = device().machine().region(this->subtag(tempstring, THUNDERCLOCK_ROM_REGION))->base();
110
111   save_item(NAME(m_dataout));
110112}
111113
112114void a2bus_thunderclock_device::device_reset()
src/mess/machine/a2memexp.c
r14970r14971
108108   m_rom = device().machine().region(this->subtag(tempstring, MEMEXP_ROM_REGION))->base();
109109
110110    memset(m_ram, 0xff, 1024*1024*sizeof(UINT8));
111
112   save_item(NAME(m_regs));
113   save_item(NAME(m_ram));
114   save_item(NAME(m_wptr));
115   save_item(NAME(m_liveptr));
111116}
112117
113118void a2bus_memexp_device::device_reset()

Previous 15994 Revisions Next


© 1998-2018 The MESS Team