summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/at28c16.h
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2008-08-25 09:52:26 +0000
committer smf- <smf-@users.noreply.github.com>2008-08-25 09:52:26 +0000
commit8fc5baaaabbecbdbb2966d97afa130148867ed14 (patch)
tree511e3a5350c6388a86b24d2da2cade8effdeb1f5 /src/emu/machine/at28c16.h
parentaa4d5b369eb3dd207243362f6484d8340612c4d7 (diff)
Improved dip switch emulation in zn.c, ram hacks to get games booting are no longer required.
Added gun emulation for judge dredd. Fixed judge dredd ide emulation when building with visual studio. Mapped primal rage 2 inputs Mapped player 3 & 4 inputs for 1 on 1 government, these are now the default with the 6 button inputs only mapped for games that need them. Converted AT28C16 to a device. Added preliminary support for devices to load/save nvram. New games added or promoted from NOT_WORKING status Super Football Champ (Ver 2.5O) Super Football Champ (Ver 2.4J) Magical Date / Magical Date - dokidoki kokuhaku daisakusen (Ver 2.02J) Fighters' Impact (Ver 2.02O) Judge Dredd (Rev C Dec. 17 1997) Judge Dredd (Rev B Nov. 26 1997)
Diffstat (limited to 'src/emu/machine/at28c16.h')
-rw-r--r--src/emu/machine/at28c16.h29
1 files changed, 12 insertions, 17 deletions
diff --git a/src/emu/machine/at28c16.h b/src/emu/machine/at28c16.h
index fb0df9cf373..53f1edfb258 100644
--- a/src/emu/machine/at28c16.h
+++ b/src/emu/machine/at28c16.h
@@ -8,27 +8,22 @@
#if !defined( AT28C16_H )
#define AT28C16_H ( 1 )
-#define MAX_AT28C16_CHIPS ( 4 )
+typedef struct _at28c16_config at28c16_config;
+struct _at28c16_config
+{
+ const char *data;
+ const char *id;
+};
-extern void at28c16_init( int chip, UINT8 *data, UINT8 *id );
-extern void at28c16_a9_12v( int chip, int a9_12v );
+#define AT28C16 DEVICE_GET_INFO_NAME(at28c16)
+DEVICE_GET_INFO(at28c16);
-/* nvram handlers */
-
-NVRAM_HANDLER( at28c16_0 );
-NVRAM_HANDLER( at28c16_1 );
-NVRAM_HANDLER( at28c16_2 );
-NVRAM_HANDLER( at28c16_3 );
+extern void at28c16_a9_12v( const device_config *device, int a9_12v );
+extern void at28c16_oe_12v( const device_config *device, int a9_12v );
/* memory handlers */
-extern READ8_HANDLER( at28c16_0_r );
-extern READ8_HANDLER( at28c16_1_r );
-extern READ8_HANDLER( at28c16_2_r );
-extern READ8_HANDLER( at28c16_3_r );
-extern WRITE8_HANDLER( at28c16_0_w );
-extern WRITE8_HANDLER( at28c16_1_w );
-extern WRITE8_HANDLER( at28c16_2_w );
-extern WRITE8_HANDLER( at28c16_3_w );
+WRITE8_DEVICE_HANDLER( at28c16_w );
+READ8_DEVICE_HANDLER( at28c16_r );
#endif