Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 1998 16:12:01 -0600
From:      "cucu" <cucu@cuneydi.com>
To:        <freebsd-questions@FreeBSD.ORG>
Message-ID:  <NCBBLKJGGKLDJPCBEPGOEEHKCIAA.cucu@cuneydi.com>

next in thread | raw e-mail | index | archive | help
I would like convert the following piece of code from DOS to FreeBSD.
What is the right way doing this? Can someone point me to the right
direction?

Thanks
...
int GetNo(unsigned char *dest)
{                           
        in.x.ax = 0xd820; 
        in.x.si = FP_OFF(dest);
        segs.ds = FP_SEG(dest);
        int86x(0x15, &in, &out, &segs);
        if (out.x.cflag)
                return -1;                      // Error
        return (int)(*dest);
}
...

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NCBBLKJGGKLDJPCBEPGOEEHKCIAA.cucu>