cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/01/22:34:48

Message-ID: <37CDBF31.8CBA3624@swipnet.se>
From: Anders David Skarin <hobbit AT swipnet DOT se>
X-Mailer: Mozilla 4.5 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: __DJGPP_CONVENTIONAL_BASE trouble!
Lines: 22
NNTP-Posting-Host: 130.244.82.198
X-Complaints-To: news-abuse AT swip DOT net
X-Trace: nntpserver.swip.net 936230878 130.244.82.198 (Thu, 02 Sep 1999 02:07:58 MET DST)
NNTP-Posting-Date: Thu, 02 Sep 1999 02:07:58 MET DST
Organization: A Customer of Tele2
X-Sender: s-437261 AT dialup82-4-6 DOT swipnet DOT se
Date: Thu, 02 Sep 1999 02:05:05 +0200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

When i use addresses defined in my .cpp files like this
"PTR = (long)(VIDEO_MEM.address+__djgpp_conventional_base)"
in my asm files (NASM) i wont get the right address. 

I thought the solution would be to do this instead:
"PTR = (long)(VIDEO_MEM.address)"
And then adding __DJGPP_CONVENTIONAL_BASE in my
asm functions. But I can't get hold of the __DJGPP_CONVENTIONAL_BASE
from my external asm (NASM) files.

This doesn't cut it.
[EXTERN ___djgpp_conventional_base]

Any suggestions?

And if anyone cares to explain a little about
the address change when using asm, I would be
very greatful.

Thanks in advance !!

- Raw text -


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