www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/12/08:36:26

Xref: news2.mv.net comp.os.msdos.djgpp:1002
From: Thomas Rivinius <triviniu AT lsw DOT uni-heidelberg DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: DJGPP (DOS): How to make FP_SEG, FP_OFF and MK_FP?
Date: Mon, 12 Feb 1996 12:14:09 +0100
Organization: Landessternwarte
Lines: 18
Message-ID: <311F2101.17A1@lsw.uni-heidelberg.de>
NNTP-Posting-Host: hp2.lsw.uni-heidelberg.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm programming a CCD-Control program for a spectrograph.
The CCD is driven by giving the segment adress and the offset of the
pointer to
the command.

How can I get with djgpp these values from the pointer?
In Turbo-C and MicrosoftC it would work using
segment=FP_SEG( pointer)
offset=FP_OFF(pointer)
and
pointer=MK_FP(segment,offset).

Are there similar routines in the libraries or header-files?
Or do I have to write it in assembler (and how)?

Thanks a lot in advance,

Rivi

- Raw text -


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