@Override
    public void set_irq_callback(irqcallbacksPtr callback) {
         m6502.irq_callback = callback;
    }
/*TODO*///
/*TODO*///void m6502_state_save(void *file)
/*TODO*///{
/*TODO*///	int cpu = cpu_getactivecpu();
/*TODO*///	state_save_UINT8(file,"m6502",cpu,"TYPE",&m6502.subtype,1);
/*TODO*///	/* insn is set at restore since it's a pointer */
/*TODO*///	state_save_UINT16(file,"m6502",cpu,"PC",&m6502.pc.w.l,2);
/*TODO*///	state_save_UINT16(file,"m6502",cpu,"SP",&m6502.sp.w.l,2);
/*TODO*///	state_save_UINT8(file,"m6502",cpu,"P",&m6502.p,1);
/*TODO*///	state_save_UINT8(file,"m6502",cpu,"A",&m6502.a,1);
/*TODO*///	state_save_UINT8(file,"m6502",cpu,"X",&m6502.x,1);
/*TODO*///	state_save_UINT8(file,"m6502",cpu,"Y",&m6502.y,1);
/*TODO*///	state_save_UINT8(file,"m6502",cpu,"PENDING",&m6502.pending_irq,1);
/*TODO*///	state_save_UINT8(file,"m6502",cpu,"AFTER_CLI",&m6502.after_cli,1);
/*TODO*///	state_save_UINT8(file,"m6502",cpu,"NMI_STATE",&m6502.nmi_state,1);
/*TODO*///	state_save_UINT8(file,"m6502",cpu,"IRQ_STATE",&m6502.irq_state,1);
/*TODO*///	state_save_UINT8(file,"m6502",cpu,"SO_STATE",&m6502.so_state,1);
/*TODO*///}
/*TODO*///
/*TODO*///void m6502_state_load(void *file)
/*TODO*///{
/*TODO*///	int cpu = cpu_getactivecpu();
/*TODO*///	state_load_UINT8(file,"m6502",cpu,"TYPE",&m6502.subtype,1);
/*TODO*///	/* insn is set at restore since it's a pointer */
/*TODO*///	switch (m6502.subtype)
/*TODO*///	{
/*TODO*///#if HAS_M65C02
/*TODO*///		case SUBTYPE_65C02:
/*TODO*///			m6502.insn = insn65c02;
/*TODO*///			break;
/*TODO*///#endif
/*TODO*///#if HAS_M65SC02
/*TODO*///		case SUBTYPE_65SC02:
/*TODO*///			m6502.insn = insn65sc02;
/*TODO*///			break;
/*TODO*///#endif
/*TODO*///#if HAS_M6510
/*TODO*///		case SUBTYPE_6510:
/*TODO*///			m6502.insn = insn6510;
/*TODO*///			break;
/*TODO*///#endif
/*TODO*///		default:
/*TODO*///			m6502.insn = insn6502;
/*TODO*///			break;
/*TODO*///	}
/*TODO*///	state_load_UINT16(file,"m6502",cpu,"PC",&m6502.pc.w.l,2);
/*TODO*///	state_load_UINT16(file,"m6502",cpu,"SP",&m6502.sp.w.l,2);
/*TODO*///	state_load_UINT8(file,"m6502",cpu,"P",&m6502.p,1);
/*TODO*///	state_load_UINT8(file,"m6502",cpu,"A",&m6502.a,1);
/*TODO*///	state_load_UINT8(file,"m6502",cpu,"X",&m6502.x,1);
/*TODO*///	state_load_UINT8(file,"m6502",cpu,"Y",&m6502.y,1);
/*TODO*///	state_load_UINT8(file,"m6502",cpu,"PENDING",&m6502.pending_irq,1);
/*TODO*///	state_load_UINT8(file,"m6502",cpu,"AFTER_CLI",&m6502.after_cli,1);
/*TODO*///	state_load_UINT8(file,"m6502",cpu,"NMI_STATE",&m6502.nmi_state,1);
/*TODO*///	state_load_UINT8(file,"m6502",cpu,"IRQ_STATE",&m6502.irq_state,1);
/*TODO*///	state_load_UINT8(file,"m6502",cpu,"SO_STATE",&m6502.so_state,1);
/*TODO*///}