Mail Archives: djgpp/1994/01/07/15:16:41
Alex-
I'm very new to the use of the DJGPP package and the GNU C compiler, but I
think I might be of some help. According to the documentation contained in
as.tex, the symbol that translates to the current location counter is the dot
(.). According to the doc, the code 'melvin: .long .' will cause the location
referenced by the label 'melvin' to contain its own address.
If you are going to use as, you should get a copy of this document. I think it
requires a 'latex' processor, but I'm not sure. Someone else here generated
the document. !!! Beware AT&T syntax !!!
-Jim. (jbabcock AT netrix DOT com)
_______________________________________________________________________________
To: djgpp AT sun DOT soe DOT clarkson DOT edu
From: Alexander S A Kjeldaas on Fri, Jan 7, 1994 1:51 PM
Subject: What is the address of the code?
I use have written some assembly routines in TASM that I want to port and use
with DJGPP. Some of the code is self-modifying, so I need to know where the
address of the routine is. Now, where is the code located and do I have write
access to this memory area?
A small (4-5 lines) AS example would be nice.
Thanks,
Alex
- Raw text -