From 8c4823e92f8ea875f8044d2644dafb2d34503a8c Mon Sep 17 00:00:00 2001 From: Brian Troha Date: Tue, 21 Apr 2009 20:12:37 +0000 Subject: [PATCH] [3110] megat4st not working - fixed reading of Dallas key --- src/mame/drivers/meritm.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/mame/drivers/meritm.c b/src/mame/drivers/meritm.c index f0a42069c54..09160461d3c 100644 --- a/src/mame/drivers/meritm.c +++ b/src/mame/drivers/meritm.c @@ -1411,6 +1411,17 @@ static DRIVER_INIT(megat4te) }; +static DRIVER_INIT(megat4st) +{ + static const UINT8 megat4te_ds1204_nvram[16] = + { 0x11, 0x04, 0x96, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00 }; + + ds1204_init(machine, 0, megat4te_ds1204_nvram); + + memory_install_readwrite8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0xfff8, 0xffff, 0, 0, meritm_ds1644_r, meritm_ds1644_w ); + +}; + static DRIVER_INIT(megat5) { static const UINT8 megat5_ds1204_nvram[16] = @@ -1447,7 +1458,7 @@ GAME( 1996, megat4, 0, meritm_crt260, meritm_crt260, megat4, ROT0, "Me GAME( 1996, megat4a, megat4, meritm_crt260, meritm_crt260, megat4, ROT0, "Merit", "Megatouch IV (9255-40-01 ROD, Standard version)", GAME_IMPERFECT_GRAPHICS ) GAME( 1996, megat4sn, megat4, meritm_crt260, meritm_crt260, megat4, ROT0, "Merit", "Super Megatouch IV (9255-41-07 ROG, New Jersey version)", GAME_IMPERFECT_GRAPHICS ) GAME( 1996, megat4te, megat4, meritm_crt260, meritm_crt260, megat4te, ROT0, "Merit", "Megatouch IV Tournament Edition (9255-50-01 ROD, Standard version)", GAME_IMPERFECT_GRAPHICS ) -GAME( 1996, megat4st, megat4, meritm_crt260, meritm_crt260, megat4te, ROT0, "Merit", "Super Megatouch IV Tournament Edition (9255-51-01 ROB, Standard version)", GAME_IMPERFECT_GRAPHICS ) +GAME( 1996, megat4st, megat4, meritm_crt260, meritm_crt260, megat4st, ROT0, "Merit", "Super Megatouch IV Tournament Edition (9255-51-01 ROB, Standard version)", GAME_IMPERFECT_GRAPHICS ) GAME( 1997, megat5, 0, meritm_crt260, meritm_crt260, megat5, ROT0, "Merit", "Megatouch 5 (9255-60-01 ROC, Standard version)", GAME_IMPERFECT_GRAPHICS|GAME_NOT_WORKING ) GAME( 1998, megat5nj, megat5, meritm_crt260, meritm_crt260, megat5, ROT0, "Merit", "Megatouch 5 (9255-60-07 RON, New Jersey version)", GAME_IMPERFECT_GRAPHICS ) GAME( 1998, megat6, 0, meritm_crt260, meritm_crt260, megat6, ROT0, "Merit", "Megatouch 6 (9255-80-01 ROA, Standard version)", GAME_IMPERFECT_GRAPHICS )