www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/07/15:16:41

Date: 7 Jan 1994 14:33:01 U
From: "jbabcock" <jbabcock AT netrix DOT com>
Subject: RE: What is the address of the code?
To: "Alexander S A Kjeldaas" <astor AT alkymi DOT unit DOT no>,
"djgpp list" <djgpp AT sun DOT soe DOT clarkson DOT edu>

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 -


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