@Override
    public Object get_context() {
        m6809_Regs regs=new m6809_Regs();
        regs.pc=m6809.pc;
        regs.ppc=m6809.ppc;
        regs.a=m6809.a;
        regs.b=m6809.b;
        regs.dp=m6809.dp;
        regs.u=m6809.u;
        regs.s=m6809.s;
        regs.x=m6809.x;
        regs.y=m6809.y;
        regs.cc=m6809.cc;
        regs.ireg=m6809.ireg;		
        regs.irq_state=m6809.irq_state;
        regs.extra_cycles=m6809.extra_cycles;
        regs.irq_callback=m6809.irq_callback;
        regs.int_state=m6809.int_state;
        regs.nmi_state=m6809.nmi_state;
        return regs;
    }