Mail Archives: djgpp/1997/03/17/19:32:11
From: | Francesco Marcelloni <france AT iet DOT unipi DOT it>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Assembler Help!!
|
Date: | Mon, 17 Mar 1997 19:19:03 +0100
|
Organization: | University of Pisa
|
Lines: | 35
|
Message-ID: | <332D8B17.41C67EA6@iet.unipi.it>
|
NNTP-Posting-Host: | marcelloni.iet.unipi.it
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello,
I am a user of *386 assembler "as".
I read in the "as" manual that it is possible to create several sections
by directive ".section name".
I'd like to use several data sections in my program, but I have the
following problem.
Let us assume the following code:
.globl j
.section proof1
.align 2
.type j,@object
.size j,4
j:
.long 12
.globl d
.section proof2
.align 2
.type d,@object
.size d,4
d:
.long 14
I'd like to refer j or d by a selector register as, for instance, "%gs :
j" (as written in the "as" manual). How is it possible to load in gs the
address of section proof1?
Could anyone help me?
Thank you in advance.
Francesco Marcelloni
- Raw text -