summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/m6502
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-12-31 21:42:55 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-12-31 21:42:55 +0000
commit3b41606ca0c02056604a55a7b1f5165e80bc11fb (patch)
tree415d338c92efb4c7f1d4922255060f279d1d4fa2 /src/emu/cpu/m6502
parent2ca38fad3e665d2e4e0212263a07819d36f4ba7f (diff)
running_device -> device_t
They both already existed. No sense in having two names for the same object type.
Diffstat (limited to 'src/emu/cpu/m6502')
-rw-r--r--src/emu/cpu/m6502/m4510.c2
-rw-r--r--src/emu/cpu/m6502/m6502.c4
-rw-r--r--src/emu/cpu/m6502/m6502.h6
-rw-r--r--src/emu/cpu/m6502/m6509.c2
-rw-r--r--src/emu/cpu/m6502/m65ce02.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/cpu/m6502/m4510.c b/src/emu/cpu/m6502/m4510.c
index ceee36f6f1b..ee9b93284e9 100644
--- a/src/emu/cpu/m6502/m4510.c
+++ b/src/emu/cpu/m6502/m4510.c
@@ -157,7 +157,7 @@ struct _m4510_Regs {
m6510_port_write_func port_write;
};
-INLINE m4510_Regs *get_safe_token(running_device *device)
+INLINE m4510_Regs *get_safe_token(device_t *device)
{
assert(device != NULL);
assert(device->type() == M4510);
diff --git a/src/emu/cpu/m6502/m6502.c b/src/emu/cpu/m6502/m6502.c
index 7f1112e187d..00333f31825 100644
--- a/src/emu/cpu/m6502/m6502.c
+++ b/src/emu/cpu/m6502/m6502.c
@@ -85,7 +85,7 @@ struct _m6502_Regs
m6510_port_write_func port_write;
};
-INLINE m6502_Regs *get_safe_token(running_device *device)
+INLINE m6502_Regs *get_safe_token(device_t *device)
{
assert(device != NULL);
assert(device->type() == M6502 ||
@@ -330,7 +330,7 @@ static CPU_INIT( n2a03 )
Bit 7 of address $4011 (the PSG's DPCM control register), when set,
causes an IRQ to be generated. This function allows the IRQ to be called
from the PSG core when such an occasion arises. */
-void n2a03_irq(running_device *device)
+void n2a03_irq(device_t *device)
{
m6502_Regs *cpustate = get_safe_token(device);
diff --git a/src/emu/cpu/m6502/m6502.h b/src/emu/cpu/m6502/m6502.h
index 3afa02361ef..edce0e64297 100644
--- a/src/emu/cpu/m6502/m6502.h
+++ b/src/emu/cpu/m6502/m6502.h
@@ -51,8 +51,8 @@ enum
positiv edge sets overflow flag */
#define M6502_SET_OVERFLOW 1
-typedef UINT8 (*m6510_port_read_func)(running_device *device, UINT8 direction);
-typedef void (*m6510_port_write_func)(running_device *device, UINT8 direction, UINT8 data);
+typedef UINT8 (*m6510_port_read_func)(device_t *device, UINT8 direction);
+typedef void (*m6510_port_write_func)(device_t *device, UINT8 direction, UINT8 data);
/* Optional interface to set callbacks */
@@ -162,7 +162,7 @@ DECLARE_LEGACY_CPU_DEVICE(N2A03, n2a03);
Bit 7 of address $4011 (the PSG's DPCM control register), when set,
causes an IRQ to be generated. This function allows the IRQ to be called
from the PSG core when such an occasion arises. */
-extern void n2a03_irq(running_device *device);
+extern void n2a03_irq(device_t *device);
/****************************************************************************
diff --git a/src/emu/cpu/m6502/m6509.c b/src/emu/cpu/m6502/m6509.c
index 4c567a19cc0..3ea7f7c3873 100644
--- a/src/emu/cpu/m6502/m6509.c
+++ b/src/emu/cpu/m6502/m6509.c
@@ -88,7 +88,7 @@ struct _m6509_Regs {
write8_space_func wrmem_id; /* writemem callback for indexed instructions */
};
-INLINE m6509_Regs *get_safe_token(running_device *device)
+INLINE m6509_Regs *get_safe_token(device_t *device)
{
assert(device != NULL);
assert(device->type() == M6509);
diff --git a/src/emu/cpu/m6502/m65ce02.c b/src/emu/cpu/m6502/m65ce02.c
index 74b781102d3..7bfe01575d9 100644
--- a/src/emu/cpu/m6502/m65ce02.c
+++ b/src/emu/cpu/m6502/m65ce02.c
@@ -82,7 +82,7 @@ struct _m65ce02_Regs {
write8_space_func wrmem_id; /* writemem callback for indexed instructions */
};
-INLINE m65ce02_Regs *get_safe_token(running_device *device)
+INLINE m65ce02_Regs *get_safe_token(device_t *device)
{
assert(device != NULL);
assert(device->type() == M65CE02);