Previous 15994 Revisions Next

r4014 Tuesday 30th December, 2008 at 09:35:23 UTC by Dirk Best
Fixed the default value for the callback enum in the g65816 core to fix an assert in the apple2gs driver
[src/emu/cpu/g65816]g65816.c g65816.h
[src/mess/machine]apple2gs.c

src/emu/cpu/g65816/g65816.c
r4013r4014
389389      case CPUINFO_INT_REGISTER + G65816_IRQ_STATE:   g65816_set_reg(cpustate, G65816_IRQ_STATE, info->i); break;
390390
391391      /* --- the following bits of info are set as pointers to data or functions --- */
392      case CPUINFO_PTR_G65816_READVECTOR_CALLBACK:   READ_VECTOR = (read8_space_func) info->f;   break;
392      case CPUINFO_FCT_G65816_READVECTOR_CALLBACK:   READ_VECTOR = (read8_space_func) info->f;   break;
393393   }
394394}
395395
r4013r4014
461461      case CPUINFO_FCT_BURN:                     info->burn = NULL;                  break;
462462      case CPUINFO_FCT_DISASSEMBLE:               info->disassemble = CPU_DISASSEMBLE_NAME(g65816);      break;
463463      case CPUINFO_PTR_INSTRUCTION_COUNTER:         info->icount = &cpustate->ICount;         break;
464      case CPUINFO_PTR_G65816_READVECTOR_CALLBACK:   info->f = (genf *) READ_VECTOR;         break;
464      case CPUINFO_FCT_G65816_READVECTOR_CALLBACK:   info->f = (genf *) READ_VECTOR;         break;
465465
466466      case CPUINFO_FCT_READOP:                  info->readop = CPU_READOP_NAME(g65816);         break;
467467
src/emu/cpu/g65816/g65816.h
r4013r4014
6060
6161enum
6262{
63   CPUINFO_PTR_G65816_READVECTOR_CALLBACK = CPUINFO_PTR_CPU_SPECIFIC
63   CPUINFO_FCT_G65816_READVECTOR_CALLBACK = CPUINFO_FCT_CPU_SPECIFIC
6464};
6565
6666/* Main interface function */
src/mess/machine/apple2gs.c
r4013r4014
17371737   apple2_init_common(machine);
17381738
17391739   /* set up Apple IIgs vectoring */
1740   device_set_info_fct(machine->cpu[0], CPUINFO_PTR_G65816_READVECTOR_CALLBACK, (genf *) apple2gs_read_vector);
1740   device_set_info_fct(machine->cpu[0], CPUINFO_FCT_G65816_READVECTOR_CALLBACK, (genf *) apple2gs_read_vector);
17411741
17421742   /* setup globals */
17431743   apple2gs_cur_slot6_image = NULL;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team