summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2008-02-28 02:22:10 +0000
committer Nathan Woods <npwoods@mess.org>2008-02-28 02:22:10 +0000
commitee187c0bf6c35687f6a7334977efc2ae58a94d4e (patch)
treeba30e0845e109878b2f15cb9eea354d93514f36c
parent7d092ece837a918d7fdce12325415b29cd2e33d1 (diff)
Added a stub implementation of the Rockwell 6545
-rw-r--r--src/emu/video/mc6845.c12
-rw-r--r--src/emu/video/mc6845.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/src/emu/video/mc6845.c b/src/emu/video/mc6845.c
index 44baaee8ac2..2bd8c8925cd 100644
--- a/src/emu/video/mc6845.c
+++ b/src/emu/video/mc6845.c
@@ -540,3 +540,15 @@ void mc6845_get_info(running_machine *machine, void *token, UINT32 state, device
case DEVINFO_STR_CREDITS: info->s = "Copyright Nicola Salmoria and the MAME Team"; break;
}
}
+
+
+void r6545_get_info(running_machine *machine, void *token, UINT32 state, deviceinfo *info)
+{
+ switch (state)
+ {
+ /* --- the following bits of info are returned as NULL-terminated strings --- */
+ case DEVINFO_STR_NAME: info->s = "R6545"; break;
+ case DEVINFO_STR_FAMILY: info->s = "R6545 CRTC"; break;
+ default: mc6845_get_info(machine, token, state, info); break;
+ }
+}
diff --git a/src/emu/video/mc6845.h b/src/emu/video/mc6845.h
index 2e6b84cf57e..9f2a17b0910 100644
--- a/src/emu/video/mc6845.h
+++ b/src/emu/video/mc6845.h
@@ -25,6 +25,7 @@ typedef struct _mc6845_t mc6845_t;
typedef struct _mc6845_interface mc6845_interface;
#define MC6845 mc6845_get_info
+#define R6545 r6545_get_info
struct _mc6845_interface
@@ -58,6 +59,7 @@ struct _mc6845_interface
/* device interface */
void mc6845_get_info(running_machine *machine, void *token, UINT32 state, deviceinfo *info);
+void r6545_get_info(running_machine *machine, void *token, UINT32 state, deviceinfo *info);
/* select one of the registers for reading or writing */
void mc6845_address_w(mc6845_t *mc6845, UINT8 data);