@Override
    public void set_context(Object reg) {
        m6502_Regs regs = (m6502_Regs)reg;
        m6502.subtype=regs.subtype;
        m6502.insn=regs.insn;
        m6502.ppc.SetD(regs.ppc.D);
        m6502.pc.SetD(regs.pc.D);
        m6502.zp.SetD(regs.zp.D);
        m6502.sp.SetD(regs.sp.D);
        m6502.ea.SetD(regs.ea.D);
        m6502.a=regs.a;			
	m6502.x=regs.x;
	m6502.y=regs.y;
	m6502.p=regs.p;
	m6502.pending_irq=regs.pending_irq;	
	m6502.after_cli=regs.after_cli;
	m6502.nmi_state=regs.nmi_state;
	m6502.irq_state=regs.irq_state;
	m6502.so_state=regs.so_state;
        m6502.irq_callback=regs.irq_callback;
        
        change_pc(m6502.pc.D);
    }
/*TODO*///void m6502_set_context (void *src)
/*TODO*///{
/*TODO*///	if( src )
/*TODO*///	{
/*TODO*///		m6502 = *(m6502_Regs*)src;
/*TODO*///		change_pc(PCD);
/*TODO*///	}
/*TODO*///}