Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!CC.DAPHNE@COLUMBIA-20.ARPA
From: CC.DAPHNE@COLUMBIA-20.ARPA
Newsgroups: net.micro.pc
Subject: EXTRNal STRUCs Query
Message-ID: <16632@sri-arpa.UUCP>
Date: Sat, 11-Feb-84 14:54:03 EST
Article-I.D.: sri-arpa.16632
Posted: Sat Feb 11 14:54:03 1984
Date-Received: Wed, 15-Feb-84 06:05:40 EST
Lines: 28

From:  Daphne Tzoar 

I am trying to use the IBM assembler to define a STRUC in one module
and reference it from another module.  As I understand it, a structure
must first be declared as

foo struc
one  db   ?
two  db   ?
foo  ends

and then allocated some space as  

foobar foo <0,0>

before it can be used as foobar.one.  I put all of the declarations in
one file which is INCLUDE'd in the file I am trying to compile.  The
actual allocation is in File A and I want to reference the fields of
the structure in File B.  I must declare it as EXTRN but as what type?
The BYTE option compiles but then it doesn't know foobar is a
structure.  The manual mumbles something about using a name defined by
a EQU but doesn't explain itself.  I've tried a few options but get an
error "Already had an ELSE statement".  Great !!  So, my problem is
how can I declare this structure so I can use it as foobar.one and
foobar.two or do I have to find a different way to do it (ie, pass the
address in a register and add offsets to it.

/daphne