Previous 199869 Revisions Next

r23933 Tuesday 25th June, 2013 at 12:47:40 UTC by David Haywood
probably fix (somebody who knows it, please check this driver, it seems a little too keen on poking around with internals) (nw)
[src/mess/drivers]apollo.c
[src/mess/includes]apollo.h
[src/mess/machine]apollo_dbg.c

trunk/src/mess/drivers/apollo.c
r23932r23933
219219int apollo_instruction_hook(m68000_base_device *device, offs_t curpc)
220220{
221221   m68000_base_device *m68k = device;
222   //m68000_base_device *m68k = (m68000_base_device *) downcast<legacy_cpu_device *> (device)->token();
223222
224223   static UINT16 idle_counter = 0;
225224
r23932r23933
513512{
514513   offs_t address = offset * 4;
515514
516   m68000_base_device *m68k = (m68000_base_device *) downcast<legacy_cpu_device *>(&space.device())->token();
515   m68000_base_device *m68k = m_maincpu;
517516
518517   if ((address & 0xfff00000) == 0xfa800000 && VERBOSE < 2) {
519518      // ?
trunk/src/mess/machine/apollo_dbg.c
r23932r23933
11001100//  before executing each instruction
11011101//-------------------------------------------------
11021102
1103int apollo_debug_instruction_hook(device_t *device, offs_t curpc)
1103int apollo_debug_instruction_hook(m68000_base_device *device, offs_t curpc)
11041104{
11051105   // trap data remembered for next rte
11061106   static struct {
r23932r23933
11141114   {
11151115      UINT32 ppc_save;
11161116      UINT16 ir;
1117      m68000_base_device *m68k = (m68000_base_device *) downcast<legacy_cpu_device *> (device)->token();
1117      m68000_base_device *m68k = device;
11181118      m68k->mmu_tmp_buserror_occurred = 0;
11191119
11201120      /* Read next instruction */
trunk/src/mess/includes/apollo.h
r23932r23933
6060
6161/*----------- machine/apollo_dbg.c -----------*/
6262
63int apollo_debug_instruction_hook(device_t *device, offs_t curpc);
63int apollo_debug_instruction_hook(m68000_base_device *device, offs_t curpc);
6464
6565/*----------- drivers/apollo.c -----------*/
6666

Previous 199869 Revisions Next


© 1997-2024 The MAME Team