Mail Archives: djgpp/1997/03/16/06:25:05
| From:  | Laurentiu Badea <byte AT lmn DOT pub DOT ro>
 | 
| Newsgroups:  | comp.os.msdos.djgpp
 | 
| Subject:  | Re: Selector:Offset32 pair in DJGPP
 | 
| Date:  | Sun, 16 Mar 1997 11:47:27 +0200
 | 
| Organization:  | Numerical Methods Laboratory
 | 
| Lines:  | 17
 | 
| Message-ID:  | <332BC1AF.70695F1C@lmn.pub.ro>
 | 
| References:  | <33298629 DOT 7A01 AT geocities DOT com>
 | 
| NNTP-Posting-Host:  | heineken.lmn.pub.ro
 | 
| Mime-Version:  | 1.0
 | 
| To:  | djgpp AT delorie DOT com
 | 
| DJ-Gateway:  | from newsgroup comp.os.msdos.djgpp
 | 
Daryl Cooper wrote:
> 
> can anyone tell me how to get a selector:offset pair from a pointer in
> c. I need this for some lowlevel ASM stuff, and it would be really
> helpfull if anyone could help me with this, Thanx
> 
I guess that if it's a 32bit pointer in your data space, 
then you simply take DS:pointer.
Laurentiu Badea
-- 
---------------------------------------------------------------------
| Laurentiu Badea,             byte AT lmn DOT pub DOT ro                      |
| student at PUB,                                                   |
| Computer Science Dept.       http://www2.lmn.pub.ro/~byte/        |
---------------------------------------------------------------------
- Raw text -