www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/18/13:08:56

Xref: news-dnh.mv.net comp.os.msdos.djgpp:426
Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!news-e1a.megaweb.com!newstf01.news.aol.com!uunet!sunic!sunic.sunet.se!news.uni-c.dk!diku.dk!terra
From: terra AT diku DOT dk (Morten Welinder)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: CD-ROM in DJGPP
Date: 18 Jun 1995 15:14:25 GMT
Organization: Department of Computer Science, U of Copenhagen
Lines: 19
Sender: terra AT tyr DOT diku DOT dk
References: <DAD04C DOT 94J AT jade DOT mv DOT net>
Nntp-Posting-Host: odin.diku.dk
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

jmccawle AT cs DOT uno DOT edu (Cap'n Hardgeus) writes:

>I assume that I should take the segment and the offset and make a far pointer
>out of it for the interrupt to use: (seg << 16) | offset.


Either

	(seg << 4) + offset

or

	(seg * 16) + offset

never both.  Use "|" only if you know it's less than 16.


Morten
 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019