[net.micro.pc] EXTRNal STRUCs Query

CC.DAPHNE@COLUMBIA-20.ARPA (02/11/84)

From:  Daphne Tzoar <CC.DAPHNE@COLUMBIA-20.ARPA>

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