diff options
Diffstat (limited to 'src/emu/cpu/tms7000/tms7000.c')
-rw-r--r-- | src/emu/cpu/tms7000/tms7000.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/cpu/tms7000/tms7000.c b/src/emu/cpu/tms7000/tms7000.c index d0bb4b0a24c..2902ccba522 100644 --- a/src/emu/cpu/tms7000/tms7000.c +++ b/src/emu/cpu/tms7000/tms7000.c @@ -45,7 +45,7 @@ static void tms7000_check_IRQ_lines(tms7000_state *cpustate); static void tms7000_do_interrupt( tms7000_state *cpustate, UINT16 address, UINT8 line ); static CPU_EXECUTE( tms7000 ); static CPU_EXECUTE( tms7000_exl ); -static void tms7000_service_timer1( const device_config *device ); +static void tms7000_service_timer1( running_device *device ); static UINT16 bcd_add( UINT16 a, UINT16 b ); static UINT16 bcd_tencomp( UINT16 a ); static UINT16 bcd_sub( UINT16 a, UINT16 b); @@ -73,7 +73,7 @@ struct _tms7000_state UINT8 rf[0x80]; /* Register file (SJE) */ UINT8 pf[0x100]; /* Perpherial file */ cpu_irq_callback irq_callback; - const device_config *device; + running_device *device; const address_space *program; const address_space *io; int icount; @@ -85,7 +85,7 @@ struct _tms7000_state UINT8 idle_state; /* Set after the execution of an idle instruction */ }; -INLINE tms7000_state *get_safe_token(const device_config *device) +INLINE tms7000_state *get_safe_token(running_device *device) { assert(device != NULL); assert(device->token != NULL); @@ -529,7 +529,7 @@ static CPU_EXECUTE( tms7000_exl ) /**************************************************************************** * Trigger the event counter ****************************************************************************/ -void tms7000_A6EC1( const device_config *device ) +void tms7000_A6EC1( running_device *device ) { tms7000_state *cpustate = get_safe_token(device); if( (cpustate->pf[0x03] & 0x80) == 0x80 ) /* Is timer system active? */ @@ -539,7 +539,7 @@ void tms7000_A6EC1( const device_config *device ) } } -static void tms7000_service_timer1( const device_config *device ) +static void tms7000_service_timer1( running_device *device ) { tms7000_state *cpustate = get_safe_token(device); if( --cpustate->t1_prescaler < 0 ) /* Decrement prescaler and check for underflow */ |