@Override
    public void set_context(Object reg) {
        m6809_Regs Regs = (m6809_Regs)reg;
        m6809.pc=Regs.pc;
        m6809.ppc=Regs.ppc;
        m6809.a=Regs.a;
        m6809.b=Regs.b;
        m6809.dp=Regs.dp;
        m6809.u=Regs.u;
        m6809.s= Regs.s;
        m6809.x=Regs.x;
        m6809.y=Regs.y;
        m6809.cc=Regs.cc;
        m6809.ireg=Regs.ireg;		
        m6809.irq_state=Regs.irq_state;
        m6809.extra_cycles=Regs.extra_cycles;
        m6809.irq_callback=Regs.irq_callback;
        m6809.int_state=Regs.int_state;
        m6809.nmi_state=Regs.nmi_state;
        
        CHANGE_PC();
       CHECK_IRQ_LINES();
    }
    
    /*TODO*///void m6809_set_context(void *src)
    /*TODO*///{
    /*TODO*///	if( src )
    /*TODO*///		m6809 = *(m6809_Regs*)src;
    /*TODO*///	
    /*TODO*///
    /*TODO*///    
    /*TODO*///}