Re: A89: Invalid opcodes (was Re: Addressing)


[Prev][Next][Index][Thread]

Re: A89: Invalid opcodes (was Re: Addressing)




Scott Noveck wrote:
> A68k - which sucks royally

On that note... How do I get a68k to stop complianing about
relocatability errors...

StartOfRoutines:
r1:
...
r2:
...

routineTable: dc.l r1-StartOfRoutine,r2-StartOfRoutines

That should give me offsets not absolute addresses... then later on I
should be able to say:
   lea StartOfRoutines(pc),a4
   move.w #1,d0 ;Routine 1
   mulu.w #4,d0
   jsr (d0,a4)

But a68k doesn't like that...

-- 
Scott "_Wrath_" Dial
wrath@calc.org
ICQ#3608935
Member of TCPA - tcpa.calc.org
__________________________________________
NetZero - Defenders of the Free World
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html


Follow-Ups: References: