summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2012-04-02 19:20:33 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2012-04-02 19:20:33 +0000
commit1f1c6019380053f1ce1a954ffac652cdb8d0f736 (patch)
tree76289645d88b3f96f99901721c972ce9053d7fd8
parentf5f18b3a50a362dbdac6e977d4bb9087531b0ec0 (diff)
added i8156 device definition
-rw-r--r--src/emu/machine/i8155.c5
-rw-r--r--src/emu/machine/i8155.h14
2 files changed, 16 insertions, 3 deletions
diff --git a/src/emu/machine/i8155.c b/src/emu/machine/i8155.c
index ec83d3013de..c8296a5baef 100644
--- a/src/emu/machine/i8155.c
+++ b/src/emu/machine/i8155.c
@@ -1,6 +1,6 @@
/**********************************************************************
- Intel 8155 - 2048-Bit Static MOS RAM with I/O Ports and Timer emulation
+ Intel 8155/8156 - 2048-Bit Static MOS RAM with I/O Ports and Timer emulation
Copyright MESS Team.
Visit http://mamedev.org for licensing and usage restrictions.
@@ -19,8 +19,9 @@
#include "i8155.h"
-// device type definition
+// device type definitions
const device_type I8155 = &device_creator<i8155_device>;
+const device_type I8156 = &device_creator<i8155_device>;
//**************************************************************************
diff --git a/src/emu/machine/i8155.h b/src/emu/machine/i8155.h
index 56929d9caf0..2eccf4c8dd2 100644
--- a/src/emu/machine/i8155.h
+++ b/src/emu/machine/i8155.h
@@ -1,6 +1,7 @@
/**********************************************************************
- Intel 8155 - 2048-Bit Static MOS RAM with I/O Ports and Timer emulation
+ Intel 8155/8156 - 2048-Bit Static MOS RAM with I/O Ports and Timer emulation
+ 8156 is the same as 8155, except that chip enable is active high instead of low
Copyright MESS Team.
Visit http://mamedev.org for licensing and usage restrictions.
@@ -54,10 +55,20 @@
MCFG_DEVICE_ADD((_tag), I8155, _clock) \
MCFG_DEVICE_CONFIG(_config)
+
+#define MCFG_I8156_ADD(_tag, _clock, _config) \
+ MCFG_DEVICE_ADD((_tag), I8156, _clock) \
+ MCFG_DEVICE_CONFIG(_config)
+
+
#define I8155_INTERFACE(name) \
const i8155_interface (name) =
+#define I8156_INTERFACE(name) \
+ const i8156_interface (name) =
+
+
//**************************************************************************
// TYPE DEFINITIONS
@@ -148,6 +159,7 @@ private:
// device type definition
extern const device_type I8155;
+extern const device_type I8156;