Previous 15994 Revisions Next

r3820 Thursday 11th December, 2008 at 16:53:13 UTC by Wilbert Pol
Removed usage of safe_cpu_get_pc.
[src/mess/machine]6530miot.c ins8154.c lisa.c

src/mess/machine/ins8154.c
r3819r3820
8888   if (offset > 0x24)
8989   {
9090      logerror("INS8154 (%08x): Read from unknown offset %02x!\n",
91         safe_cpu_get_pc( device->machine->cpu[0] ), offset);
91         cpu_get_pc( device->machine->cpu[0] ), offset);
9292      return 0xff;
9393   }
9494   
r3819r3820
138138         i->intf->out_a_func(device, 0, (data & i->odra) | (i->odra ^ 0xff));
139139      else
140140         logerror("INS8154 (%08x): Write to port A but no write handler defined!\n",
141            safe_cpu_get_pc( device->machine->cpu[0] ) );
141            cpu_get_pc( device->machine->cpu[0] ) );
142142   }
143143}
144144
r3819r3820
156156         i->intf->out_b_func(device, 0, (data & i->odrb) | (i->odrb ^ 0xff));
157157      else
158158         logerror("INS8154 (%08x): Write to port B but no write handler defined!\n",
159            safe_cpu_get_pc( device->machine->cpu[0] ) );
159            cpu_get_pc( device->machine->cpu[0] ) );
160160   }
161161}
162162
r3819r3820
168168   if (offset > 0x24)
169169   {
170170      logerror("INS8154 (%04x): Write %02x to invalid offset %02x!\n",
171         safe_cpu_get_pc( device->machine->cpu[0] ), data, offset);
171         cpu_get_pc( device->machine->cpu[0] ), data, offset);
172172      return;
173173   }
174174   
r3819r3820
184184     
185185   case 0x22:
186186      LOG(("INS8154 (%04x): ODR for port A set to %02x\n",
187         safe_cpu_get_pc( device->machine->cpu[0] ), data));
187         cpu_get_pc( device->machine->cpu[0] ), data));
188188      i->odra = data;
189189      break;
190190     
191191   case 0x23:
192192      LOG(("INS8154 (%04x): ODR for port B set to %02x\n",
193         safe_cpu_get_pc( device->machine->cpu[0] ), data));
193         cpu_get_pc( device->machine->cpu[0] ), data));
194194      i->odrb = data;
195195      break;
196196     
197197   case 0x24:
198198      LOG(("INS8154 (%04x): MDR set to %02x\n",
199         safe_cpu_get_pc( device->machine->cpu[0] ), data));
199         cpu_get_pc( device->machine->cpu[0] ), data));
200200      i->mdr = data;
201201      break;
202202     
src/mess/machine/6530miot.c
r3819r3820
227227         if (port->out_func != NULL)
228228            (*port->out_func)(device, data, olddata);
229229         else
230            logerror("6530MIOT chip %s: Port %c is being written to but has no handler.  PC: %08X - %02X\n", device->tag, 'A' + (offset & 1), safe_cpu_get_pc(device->machine->cpu[0]), data);
230            logerror("6530MIOT chip %s: Port %c is being written to but has no handler.  PC: %08X - %02X\n", device->tag, 'A' + (offset & 1), cpu_get_pc(device->machine->cpu[0]), data);
231231      }
232232   }
233233}
r3819r3820
289289            port->in = (*port->in_func)(device, port->in);
290290         }
291291         else
292            logerror("6530MIOT chip %s: Port %c is being read but has no handler.  PC: %08X\n", device->tag, 'A' + (offset & 1), safe_cpu_get_pc(device->machine->cpu[0]));
292            logerror("6530MIOT chip %s: Port %c is being read but has no handler.  PC: %08X\n", device->tag, 'A' + (offset & 1), cpu_get_pc(device->machine->cpu[0]));
293293
294294         /* apply the DDR to the result */
295295         val = (out & port->ddr) | (port->in & ~port->ddr);
src/mess/machine/lisa.c
r3819r3820
16051605               if ((time_in_frame >= 364) && (time_in_frame <= 375))
16061606               {
16071607                  answer = videoROM_ptr[videoROM_address|0x80] << 8;
1608              logerror("reading1 %06X=%04x PC=%06x time=%d\n", address, answer,safe_cpu_get_pc(space->machine->cpu[0]),time_in_frame);
1608              logerror("reading1 %06X=%04x PC=%06x time=%d\n", address, answer, cpu_get_pc(space->machine->cpu[0]), time_in_frame);
16091609               }
16101610               else
16111611               {
16121612                  answer = videoROM_ptr[videoROM_address] << 8;
1613              logerror("reading2 %06X=%04x PC=%06x time=%d\n", address, answer,safe_cpu_get_pc(space->machine->cpu[0]),time_in_frame);
1613              logerror("reading2 %06X=%04x PC=%06x time=%d\n", address, answer, cpu_get_pc(space->machine->cpu[0]), time_in_frame);
16141614               }
16151615            }
16161616
r3819r3820
18711871      seg &= ~2;
18721872      break;
18731873   case 0x0010:   /* SETUP register SET */
1874       logerror("setup SET PC=%x\n", safe_cpu_get_pc(machine->cpu[0]));
1874       logerror("setup SET PC=%x\n", cpu_get_pc(machine->cpu[0]));
18751875      setup = 1;
18761876      break;
18771877   case 0x0012:   /* SETUP register RESET */
1878       logerror("setup UNSET PC=%x\n", safe_cpu_get_pc(machine->cpu[0]));
1878       logerror("setup UNSET PC=%x\n", cpu_get_pc(machine->cpu[0]));
18791879      setup = 0;
18801880      break;
18811881   case 0x001A:   /* Enable Vertical Retrace Interrupt */
1882       logerror("enable retrace PC=%x\n", safe_cpu_get_pc(machine->cpu[0]));
1882       logerror("enable retrace PC=%x\n", cpu_get_pc(machine->cpu[0]));
18831883      VTMSK = 1;
18841884      break;
18851885   case 0x0018:   /* Disable Vertical Retrace Interrupt */
1886       logerror("disable retrace PC=%x\n", safe_cpu_get_pc(machine->cpu[0]));
1886       logerror("disable retrace PC=%x\n", cpu_get_pc(machine->cpu[0]));
18871887      VTMSK = 0;
18881888      set_VTIR(machine, 2);
18891889      break;
r3819r3820
20172017         else
20182018                  answer |= 0x04;
20192019         /* huh... we need to emulate some other bits */
2020          logerror("read status PC=%x val=%x\n", safe_cpu_get_pc(space->machine->cpu[0]),answer);
2020          logerror("read status PC=%x val=%x\n", cpu_get_pc(space->machine->cpu[0]),answer);
20212021
20222022         break;
20232023      }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team