www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/20/03:34:52

Date: Sat, 20 Sep 1997 03:42:08 +0000 ( )
From: "Gurunandan R. Bhat" <grbhat AT unigoa DOT ernet DOT in>
To: djgpp AT delorie DOT com
Subject: Structs in Asm
Message-Id: <Pine.LNX.3.91.970920033312.1481A-100000@aditya.unigoa.ernet.in>
Mime-Version: 1.0

Greetings,

I need to define a symbol for local structs in an external asm file in a
way that allows me to refer to the components of the struct by their own
symbols. Will the following be okay? 

------------------------------------
.data
struct_name:
	component1:	.long
	component2:	.short
....
------------------------------------
In case this is okay, can I use expressions like:
	
	$struct_name
	(struct_name)
	$component1
	(component1) 
etc.

I am aware that structs in as can be declared like:

-----------------------------------
.data
struct:
	.long
	.short
 ----------------------------------

Thanks in advance


Gurunandan

- Raw text -


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