www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/01/01:59:59

Date: Mon, 1 Feb 1999 08:57:13 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Isaac Waldron <waldroni AT lr DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Accessing Constants in Assembly Code
In-Reply-To: <000801be4d5f$66931660$9fbc98ce@waldroni>
Message-ID: <Pine.SUN.3.91.990201085643.27193E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sun, 31 Jan 1999, Isaac Waldron wrote:

> >> C:\waldroni\projects\graphics>gxx -o testc.exe testc.cc -lgraphics
> >> c:/djgpp/lib/libgraphics.a(blit.o)(.text+0x4):../src/blit.s:
> >> undefined reference to `VideoRAM'
[snip]
>     movl %eax,_VideoRAM
>     leave
>     ret
> 
> So, the symbol _VideoRAM (which points to a 4-byte area of the data
> segment) should be able to be accesed from my assembler code as
> _VideoRAM, right?

Right.

But the error message from the linker came from blit.s, and it
references `VideoRAM', not `_VideoRAM'.  Can it be that blit.s didn't
prepend the underscore?

- Raw text -


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