summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/x2212.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/x2212.c')
-rw-r--r--src/emu/machine/x2212.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/machine/x2212.c b/src/emu/machine/x2212.c
index 06d29a40c7f..d20d3ec91ea 100644
--- a/src/emu/machine/x2212.c
+++ b/src/emu/machine/x2212.c
@@ -24,7 +24,7 @@ typedef struct
in device is, in fact, an X2212
-------------------------------------------------*/
-INLINE x2212_state *get_safe_token(const device_config *device)
+INLINE x2212_state *get_safe_token(running_device *device)
{
assert(device != NULL);
assert(device->token != NULL);
@@ -33,7 +33,7 @@ INLINE x2212_state *get_safe_token(const device_config *device)
return (x2212_state *)device->token;
}
-void x2212_write( const device_config *device, int offset, int data )
+void x2212_write( running_device *device, int offset, int data )
{
x2212_state *c = get_safe_token(device);
@@ -41,14 +41,14 @@ void x2212_write( const device_config *device, int offset, int data )
}
-int x2212_read( const device_config *device, int offset )
+int x2212_read( running_device *device, int offset )
{
x2212_state *c = get_safe_token(device);
return c->sram[ offset ];
}
-void x2212_store( const device_config *device, int store )
+void x2212_store( running_device *device, int store )
{
x2212_state *c = get_safe_token(device);
@@ -60,7 +60,7 @@ void x2212_store( const device_config *device, int store )
c->store = store;
}
-void x2212_array_recall( const device_config *device, int array_recall )
+void x2212_array_recall( running_device *device, int array_recall )
{
x2212_state *c = get_safe_token(device);
@@ -83,8 +83,8 @@ static DEVICE_START(x2212)
/* validate some basic stuff */
assert(device != NULL);
-// assert(device->static_config != NULL);
- assert(device->inline_config == NULL);
+// assert(device->baseconfig().static_config != NULL);
+ assert(device->baseconfig().inline_config == NULL);
assert(device->machine != NULL);
assert(device->machine->config != NULL);
@@ -93,7 +93,7 @@ static DEVICE_START(x2212)
c->store = 1;
c->array_recall = 1;
- config = (const x2212_config *)device->static_config;
+ config = (const x2212_config *)device->baseconfig().static_config;
if( config != NULL && config->data != NULL )
{
c->default_data = memory_region( device->machine, config->data );