public void RET(boolean cond)
    {
        if(cond)
        {
            //POP(PC);
            Z80.PC.SetL((cpu_readmem16(Z80.SP.D) & 0xFF)); //RM16
            Z80.PC.SetH((cpu_readmem16((Z80.SP.D + 1) & 0xffff)& 0xFF));
            Z80.SP.AddD(2);  
            
            change_pc16(Z80.PC.D);//change_pc16(_PCD);
            CY(6);
        }
    }