diff options
Diffstat (limited to 'src/emu/cpu/saturn/satops.c')
-rw-r--r-- | src/emu/cpu/saturn/satops.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/emu/cpu/saturn/satops.c b/src/emu/cpu/saturn/satops.c index 7079c073cf3..05eb99814a5 100644 --- a/src/emu/cpu/saturn/satops.c +++ b/src/emu/cpu/saturn/satops.c @@ -1,7 +1,7 @@ #define IRQ_ADDRESS 0xf #define saturn_assert(x) \ - do { if (!(x)) logerror("SATURN%d assertion failed: %s at %s:%i, pc=%05x\n", cpunum_get_active(), #x, __FILE__, __LINE__, saturn.pc); } while (0) + do { if (!(x)) logerror("SATURN '%s' assertion failed: %s at %s:%i, pc=%05x\n", saturn.device->tag, #x, __FILE__, __LINE__, saturn.pc); } while (0) INLINE int READ_OP(void) { @@ -186,24 +186,24 @@ INLINE void saturn_push(SaturnAdr adr) INLINE void saturn_interrupt_on(void) { - LOG(( "SATURN#%d at %05x: INTON\n", cpunum_get_active(), saturn.pc-4 )); + LOG(( "SATURN '%s' at %05x: INTON\n", saturn.device->tag, saturn.pc-4 )); saturn.irq_enable=1; if (saturn.irq_state) { - LOG(( "SATURN#%d set_irq_line(ASSERT)\n", cpunum_get_active())); + LOG(( "SATURN '%s' set_irq_line(ASSERT)\n", saturn.device->tag)); saturn.pending_irq=1; } } INLINE void saturn_interrupt_off(void) { - LOG(( "SATURN#%d at %05x: INTOFF\n", cpunum_get_active(), saturn.pc-4 )); + LOG(( "SATURN '%s' at %05x: INTOFF\n", saturn.device->tag, saturn.pc-4 )); saturn.irq_enable=0; } INLINE void saturn_reset_interrupt(void) { - LOG(( "SATURN#%d at %05x: RSI\n", cpunum_get_active(), saturn.pc-5 )); + LOG(( "SATURN '%s' at %05x: RSI\n", saturn.device->tag, saturn.pc-5 )); if (saturn.config&&saturn.config->rsi) saturn.config->rsi(Machine); } @@ -236,27 +236,27 @@ INLINE void saturn_shutdown(void) { saturn.sleeping=1; saturn.irq_enable=1; - LOG(( "SATURN#%d at %05x: SHUTDN\n", cpunum_get_active(), saturn.pc-3 )); + LOG(( "SATURN '%s' at %05x: SHUTDN\n", saturn.device->tag, saturn.pc-3 )); } INLINE void saturn_bus_command_b(void) { - logerror( "SATURN#%d at %05x: BUSCB opcode not handled\n", cpunum_get_active(), saturn.pc-4 ); + logerror( "SATURN '%s' at %05x: BUSCB opcode not handled\n", saturn.device->tag, saturn.pc-4 ); } INLINE void saturn_bus_command_c(void) { - logerror( "SATURN#%d at %05x: BUSCC opcode not handled\n", cpunum_get_active(), saturn.pc-3 ); + logerror( "SATURN '%s' at %05x: BUSCC opcode not handled\n", saturn.device->tag, saturn.pc-3 ); } INLINE void saturn_bus_command_d(void) { - logerror( "SATURN#%d at %05x: BUSCD opcode not handled\n", cpunum_get_active(), saturn.pc-4 ); + logerror( "SATURN '%s' at %05x: BUSCD opcode not handled\n", saturn.device->tag, saturn.pc-4 ); } INLINE void saturn_serial_request(void) { - logerror( "SATURN#%d at %05x: SREQ? opcode not handled\n", cpunum_get_active(), saturn.pc-3 ); + logerror( "SATURN '%s' at %05x: SREQ? opcode not handled\n", saturn.device->tag, saturn.pc-3 ); } INLINE void saturn_out_c(void) @@ -278,8 +278,8 @@ INLINE void saturn_in(int reg) int in = 0; saturn_assert(reg>=0 && reg<9); if (!(saturn.pc&1)) - logerror( "SATURN#%d at %05x: reg=IN opcode at odd addresse\n", - cpunum_get_active(), saturn.pc-3 ); + logerror( "SATURN '%s' at %05x: reg=IN opcode at odd addresse\n", + saturn.device->tag, saturn.pc-3 ); if (saturn.config&&saturn.config->in) in = saturn.config->in(Machine); S64_WRITE_WORD(reg,in); monitor_in = in; @@ -463,7 +463,7 @@ INLINE void saturn_return_carry_clear(void) INLINE void saturn_return_interrupt(void) { - LOG(( "SATURN#%d at %05x: RTI\n", cpunum_get_active(), saturn.pc-2 )); + LOG(( "SATURN '%s' at %05x: RTI\n", saturn.device->tag, saturn.pc-2 )); saturn.in_irq=0; /* set to 1 when an IRQ is taken */ saturn.pc=saturn_pop(); // saturn_ICount-=10; |