summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/m6502/m4510.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-11-09 01:04:37 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-11-09 01:04:37 +0000
commit1e16c452121de8429e05b38d5a0306ebe15fcdd4 (patch)
treed84961b587774ad4e0c68078eaf5ffb0f9b02e56 /src/emu/cpu/m6502/m4510.c
parentac7689264ec37623f67d18ca09ecd6ed88557672 (diff)
Cleanups/version bump.mame0128u3
Diffstat (limited to 'src/emu/cpu/m6502/m4510.c')
-rw-r--r--src/emu/cpu/m6502/m4510.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/emu/cpu/m6502/m4510.c b/src/emu/cpu/m6502/m4510.c
index c564a9b5771..e27a8240fce 100644
--- a/src/emu/cpu/m6502/m4510.c
+++ b/src/emu/cpu/m6502/m4510.c
@@ -141,11 +141,11 @@ struct _m4510_Regs {
UINT8 irq_state;
UINT16 low, high;
UINT32 mem[8];
-
+
cpu_irq_callback irq_callback;
const device_config *device;
int icount;
-
+
read8_machine_func rdmem_id; /* readmem callback for indexed instructions */
write8_machine_func wrmem_id; /* writemem callback for indexed instructions */
@@ -179,20 +179,20 @@ INLINE int m4510_cpu_readop_arg(m4510_Regs *m4510)
static READ8_HANDLER( default_rdmem_id )
{
m4510_Regs *m4510 = token;
- return program_read_byte_8le(M4510_MEM(offset));
+ return program_read_byte_8le(M4510_MEM(offset));
}
-static WRITE8_HANDLER( default_wrmem_id )
+static WRITE8_HANDLER( default_wrmem_id )
{
m4510_Regs *m4510 = token;
- program_write_byte_8le(M4510_MEM(offset), data);
+ program_write_byte_8le(M4510_MEM(offset), data);
}
static CPU_INIT( m4510 )
{
m4510_Regs *m4510 = device->token;
-
+
token = device->token;
-
+
m4510->interrupt_inhibit = 0;
m4510->rdmem_id = default_rdmem_id;
m4510->wrmem_id = default_wrmem_id;
@@ -203,7 +203,7 @@ static CPU_INIT( m4510 )
static CPU_RESET( m4510 )
{
m4510_Regs *m4510 = device->token;
-
+
m4510->insn = insn4510;
/* wipe out the rest of the m65ce02 structure */
@@ -276,7 +276,7 @@ INLINE void m4510_take_irq(m4510_Regs *m4510)
static CPU_EXECUTE( m4510 )
{
m4510_Regs *m4510 = token;
-
+
m4510->icount = cycles;
CHANGE_PC;
@@ -378,7 +378,7 @@ static READ8_HANDLER( m4510_read_0000 )
static WRITE8_HANDLER( m4510_write_0000 )
{
m4510_Regs *m4510 = token;
-
+
switch(offset)
{
case 0x0000: /* DDR */
@@ -400,7 +400,7 @@ ADDRESS_MAP_END
static CPU_TRANSLATE( m4510 )
{
m4510_Regs *m4510 = token;
-
+
if (space == ADDRESS_SPACE_PROGRAM)
*address = M4510_MEM(*address);
return TRUE;
@@ -413,7 +413,7 @@ static CPU_TRANSLATE( m4510 )
static CPU_SET_INFO( m4510 )
{
m4510_Regs *m4510 = token;
-
+
switch (state)
{
/* --- the following bits of info are set as 64-bit signed integers --- */
@@ -460,7 +460,7 @@ static CPU_SET_INFO( m4510 )
CPU_GET_INFO( m4510 )
{
m4510_Regs *m4510 = token;
-
+
switch (state)
{
/* --- the following bits of info are returned as 64-bit signed integers --- */