🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41874

DJGPP (DOS): How to make FP_SEG, FP_OFF and MK_FP?

#41874
From: Thomas Rivinius
Date: Fri, 09 Feb 1996 00:00
18 lines
1051 bytes
I'm pragramming 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
Technical Details
Message-ID: <311B7624.5A62@lsw.uni-heidelberg.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,6317abcb0cf11c54,start
X-Google-Attributes: gid11318c,public
From: Thomas Rivinius <triviniu@lsw.uni-heidelberg.de>
Subject: DJGPP (DOS): How to make FP_SEG, FP_OFF and MK_FP?
Date: 1996/02/09
Message-ID: <311B7624.5A62@lsw.uni-heidelberg.de>
X-Deja-AN: 138581005
cc: triviniu@lsw.uni-heidelberg.de
content-type: text/plain; charset=us-ascii
organization: Landessternwarte
mime-version: 1.0
newsgroups: gnu.gcc.help
x-mailer: Mozilla 2.0 (X11; I; HP-UX A.09.01 9000/715)