Previous 199869 Revisions Next

r19398 Friday 7th December, 2012 at 23:19:39 UTC by David Haywood
ncd, save the internal nvram instead of trying to use memcards like the AES does (nw)
[hash]neocd.xml
[src/mess/drivers]ng_aes.c

trunk/hash/neocd.xml
r19397r19398
248248     </part>
249249  </software>
250250
251  <software name="lastbld2">
251  <!-- Resets after loading? -->
252  <software name="lastbld2" supported="no">
252253     <description>Bakumatsu Roman Daini Maku - Gekka no Kenshi - Tsuki ni Saku Hana, Chiri Yuku Hana (1999)(SNK)(JP)[!][Last Blade 2, The]</description>
253254     <year>199?</year>
254255     <publisher>SNK</publisher>
r19397r19398
340341     </part>
341342  </software>
342343
343  <software name="doubledr">
344  <!-- Hangs during loading due to erasing vectors -->
345  <software name="doubledr" supported="no">
344346     <description>Double Dragon (1995)(SNK)(JP-US)[!][NGCD-082 MT B01, NGCD-082E MT B04]</description>
345347     <year>199?</year>
346348     <publisher>SNK</publisher>
r19397r19398
550552     </part>
551553  </software>
552554
553  <software name="kof98">
555  <!-- sound doesn't work? -->
556  <software name="kof98" supported="no">
554557     <description>King of Fighters '98, The - The Slugfest (1998)(SNK)(JP)[!][King of Fighters '98, The - Dream Match Never Ends][NGCD-2420 MT A04, NGCD-2421]</description>
555558     <year>199?</year>
556559     <publisher>SNK</publisher>
r19397r19398
594597     </part>
595598  </software>
596599
597  <software name="lresort">
600  <!-- sound doesn't work? -->
601  <software name="lresort" supported="no">
598602     <description>Last Resort (1994)(SNK)(JP-US)[!]</description>
599603     <year>199?</year>
600604     <publisher>SNK</publisher>
trunk/src/mess/drivers/ng_aes.c
r19397r19398
4646         - might need better handling of the Vector Table Mapping, or better interrupts (see point above)
4747      - Softlist are based on an old Tosec set and should be updated to the TruRip set once we can convert CCD
4848        without throwing away gap data etc.
49      - Backup RAM isn't saved?
5049
5150****************************************************************************/
5251
r19397r19398
15971596   NULL
15981597};
15991598
1599
1600static NVRAM_HANDLER( neocd )
1601{
1602   ng_aes_state *state = machine.driver_data<ng_aes_state>();
1603   if (read_or_write)
1604      file->write(state->m_memcard_data,0x2000);
1605   else
1606   {
1607      if (file)
1608         file->read(state->m_memcard_data,0x2000);
1609      else
1610      {
1611        memset(state->m_memcard_data,0x00,0x2000);
1612      }
1613   }
1614}
1615
1616
16001617static MACHINE_CONFIG_DERIVED_CLASS( neocd, neogeo_base, ng_aes_state )
16011618
16021619   MCFG_CPU_MODIFY("maincpu")
r19397r19398
16141631   MCFG_SET_TYPE3_INTERRUPT_CALLBACK( ng_aes_state, interrupt_callback_type3 )
16151632
16161633
1617   MCFG_MEMCARD_HANDLER(neogeo_aes)
1634   MCFG_NVRAM_HANDLER(neocd)
16181635
16191636   MCFG_MACHINE_START_OVERRIDE(ng_aes_state,neocd)
16201637   MCFG_MACHINE_RESET_OVERRIDE(ng_aes_state,neocd)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team