www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/01/13:45:14

From: those who know me have no need of my name <not-a-real-address AT usa DOT net>
Newsgroups: comp.programming,comp.os.msdos.djgpp
Subject: Re: Pointer arithmetics
Followup-To: comp.os.msdos.djgpp
Date: 01 Jul 2002 17:32:53 GMT
Organization: earthfriends
Message-ID: <ui14i9lus6d05@news.supernews.com>
References: <3D205E79 DOT 7020104 AT calixo DOT no-really DOT net>
User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Informed Management
(RC1), i686-redhat-linux)
MIME-Version: 1.0
X-Complaints-To: newsabuse AT supernews DOT com
Lines: 17
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

[fu-t set]

in comp.programming i read:

>I am currently writing a program (in C, aimed at pure DOS, compiled
>with DJGPP, with lots of nasty non standard bits) that needs to hook a
>function to an interrupt. For this I need to pass to an ISR the
>address of the new interrupt handler, in the segment:offset format.
>
>However, since I am using DJGPP all my code is 32 bit and memory
>addressing is linear. So I decided I'd have a go at converting the
>linear address to seg:offset for the ISR.

don't.  use the routine provided by djgpp.

-- 
bringing you boring signatures for 17 years

- Raw text -


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