Previous 199869 Revisions Next

r18020 Wednesday 19th September, 2012 at 14:16:48 UTC by Miodrag Milanović
one more found (nw)
[src/mess/drivers]ng_aes.c

trunk/src/mess/drivers/ng_aes.c
r18019r18020
9191   DECLARE_MACHINE_START(neocd);
9292   DECLARE_MACHINE_START(neogeo);
9393   DECLARE_MACHINE_RESET(neogeo);
94   DECLARE_CUSTOM_INPUT_MEMBER(get_memcard_status);
9495
9596};
9697
r18019r18020
430431
431432#define MEMCARD_SIZE   0x0800
432433
433static CUSTOM_INPUT( get_memcard_status )
434CUSTOM_INPUT_MEMBER(ng_aes_state::get_memcard_status)
434435{
435436   /* D0 and D1 are memcard presence indicators, D2 indicates memcard
436437       write protect status (we are always write enabled) */
437   if(strcmp((char*)field.machine().system().name,"aes") != 0)
438   if(strcmp((char*)machine().system().name,"aes") != 0)
438439      return 0x00;  // On the Neo Geo CD, the memory card is internal and therefore always present.
439440   else
440      return (memcard_present(field.machine()) == -1) ? 0x07 : 0x00;
441      return (memcard_present(machine()) == -1) ? 0x07 : 0x00;
441442}
442443
443444READ16_MEMBER(ng_aes_state::memcard_r)
r18019r18020
14281429   PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON5) PORT_NAME("1P Select") PORT_CODE(KEYCODE_5) PORT_PLAYER(1)   \
14291430   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_START2 )                           \
14301431   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON5) PORT_NAME("2P Select") PORT_CODE(KEYCODE_6) PORT_PLAYER(2)   \
1431   PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(get_memcard_status, NULL)         \
1432   PORT_BIT( 0x7000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, ng_aes_state, get_memcard_status, NULL)         \
14321433   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN )  /* Matrimelee expects this bit to be active high when on an AES */
14331434
14341435#define STANDARD_IN3                                                            \

Previous 199869 Revisions Next


© 1997-2024 The MAME Team