@Override
    public Object get_context() {
        m6502_Regs regs = new m6502_Regs();
        regs.subtype = m6502.subtype;
        regs.insn=m6502.insn;
        regs.ppc.SetD(m6502.ppc.D);       
        regs.pc.SetD(m6502.pc.D); 
        regs.zp.SetD(m6502.zp.D);
        regs.sp.SetD(m6502.sp.D);
        regs.ea.SetD(m6502.ea.D);
	regs.a=m6502.a;			
	regs.x=m6502.x;
	regs.y=m6502.y;
	regs.p=m6502.p;
	regs.pending_irq=m6502.pending_irq;	
	regs.after_cli=m6502.after_cli;
	regs.nmi_state=m6502.nmi_state;
	regs.irq_state=m6502.irq_state;
	regs.so_state=m6502.so_state;
        regs.irq_callback=m6502.irq_callback;     
        return regs;
    }