Mail Archives: djgpp/1997/09/20/03:34:52
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 -