@Override
    public Object get_context() {
       Z80_Regs Regs = new Z80_Regs();
       Regs.PREPC.SetD(Z80.PREPC.D);
       Regs.PC.SetD(Z80.PC.D);
       Regs.SP.SetD(Z80.SP.D);
       Regs.AF.SetD(Z80.AF.D);
       Regs.BC.SetD(Z80.BC.D);
       Regs.DE.SetD(Z80.DE.D);
       Regs.HL.SetD(Z80.HL.D);
       Regs.IX.SetD(Z80.IX.D);
       Regs.IY.SetD(Z80.IY.D);
       Regs.AF2.SetD(Z80.AF2.D);
       Regs.BC2.SetD(Z80.BC2.D);
       Regs.DE2.SetD(Z80.DE2.D);
       Regs.HL2.SetD(Z80.HL2.D);
       Regs.R = Z80.R;
       Regs.R2 = Z80.R2;
       Regs.IFF1 = Z80.IFF1;
       Regs.IFF2 = Z80.IFF2;
       Regs.HALT = Z80.HALT;
       Regs.IM = Z80.IM;
       Regs.I = Z80.I;
       Regs.irq_max = Z80.irq_max;
       Regs.request_irq = Z80.request_irq;
       Regs.service_irq = Z80.service_irq;
       Regs.nmi_state = Z80.nmi_state;
       Regs.irq_state = Z80.irq_state;
       // public int /*UNIT8*/ int_state[] = new int[Z80_MAXDAISY];  //DAISY CHAIN TODO!!
       // public Z80_DaisyChain[] irq = new Z80_DaisyChain[Z80_MAXDAISY];
       Regs.irq_callback = Z80.irq_callback;
       Regs.extra_cycles = Z80.extra_cycles;
       return Regs;
    }