From c88ba96850052446e3ee83e5edbc56a5946b01e3 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Fri, 28 Dec 2012 11:23:56 +0000 Subject: [PATCH] [COCO] Enabling RTC outside of coco3 (mametesters #4894) --- src/mess/drivers/coco12.c | 14 ++++++++++++++ src/mess/drivers/coco3.c | 13 ------------- src/mess/includes/coco.h | 1 + 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/mess/drivers/coco12.c b/src/mess/drivers/coco12.c index 681cbab568e..ee0d9a5eb0b 100644 --- a/src/mess/drivers/coco12.c +++ b/src/mess/drivers/coco12.c @@ -113,6 +113,19 @@ INPUT_PORTS_END +//------------------------------------------------- +// INPUT_PORTS( coco_rtc ) +//------------------------------------------------- + +INPUT_PORTS_START( coco_rtc ) + PORT_START("real_time_clock") + PORT_CONFNAME( 0x03, 0x00, "Real Time Clock" ) + PORT_CONFSETTING( 0x00, "Disto" ) + PORT_CONFSETTING( 0x01, "Cloud-9" ) +INPUT_PORTS_END + + + //------------------------------------------------- // INPUT_PORTS( coco_keyboard ) //------------------------------------------------- @@ -209,6 +222,7 @@ static INPUT_PORTS_START( coco ) PORT_INCLUDE( coco_joystick ) PORT_INCLUDE( coco_analog_control ) PORT_INCLUDE( coco_cart_autostart ) + PORT_INCLUDE( coco_rtc ) INPUT_PORTS_END diff --git a/src/mess/drivers/coco3.c b/src/mess/drivers/coco3.c index 77e6af4dcad..96fbc95dcf9 100644 --- a/src/mess/drivers/coco3.c +++ b/src/mess/drivers/coco3.c @@ -203,19 +203,6 @@ INPUT_PORTS_END -//------------------------------------------------- -// INPUT_PORTS( coco_rtc ) -//------------------------------------------------- - -static INPUT_PORTS_START( coco_rtc ) - PORT_START("real_time_clock") - PORT_CONFNAME( 0x03, 0x00, "Real Time Clock" ) - PORT_CONFSETTING( 0x00, "Disto" ) - PORT_CONFSETTING( 0x01, "Cloud-9" ) -INPUT_PORTS_END - - - //------------------------------------------------- // INPUT_PORTS( coco3 ) //------------------------------------------------- diff --git a/src/mess/includes/coco.h b/src/mess/includes/coco.h index 57ce6b0547f..41550a6b563 100644 --- a/src/mess/includes/coco.h +++ b/src/mess/includes/coco.h @@ -30,6 +30,7 @@ INPUT_PORTS_EXTERN( coco_analog_control ); INPUT_PORTS_EXTERN( coco_cart_autostart ); +INPUT_PORTS_EXTERN( coco_rtc ); SLOT_INTERFACE_EXTERN( coco_cart );