[comp.sys.amiga.programmer] Lattice Assembler Question

menelli@sunc7.cs.uiuc.edu (Ron Menelli) (01/29/91)

Hello all,

  I have an interesting dilemma confronting me. I am running the assembler
included with Lattice C 5.05, and I need to generate a table of addresses
that I can use to indirectly jump to subroutines. Currently I have something
like this:

Table:   dc.l        FirstLabel
         dc.l        SecondLabel

...

FirstLabel:          (some code here)

SecondLabel:         (some other code here)

...

and so on. All I get upon assembling this is an enormous series of
'undefined symbol' errors (one for each table entry, to be precise). Can
someone tell me what is wrong here? I've looked through the manual, and found
nothing of any real value, except some vague mumblings about the 'OFFSET'
directive and the 'DS' directive being used to create some sort of tables, but
I can't figure out what they're trying to say.

Thanks,
Ron Menelli
menelli@cs.uiuc.edu