Newsgroups: comp.sys.amiga.tech Path: utzoo!utgpu!watserv1!watdragon!rose!ccplumb From: ccplumb@rose.uwaterloo.ca (Colin Plumb) Subject: Re: 68k Asm Q re - indexed eff. addr. (HELP) Message-ID: <1991Jan11.043315.26623@watdragon.waterloo.edu> Sender: daemon@watdragon.waterloo.edu (Owner of Many System Processes) Organization: University of Waterloo References: <1991Jan2.164434.45993@cc.usu.edu> Date: Fri, 11 Jan 91 04:33:15 GMT Lines: 22 In article <1991Jan2.164434.45993@cc.usu.edu> sl195@cc.usu.edu (A banana is not a toy) writes: >I'm trying to get SAS/C5.10's asm assembler to compile, and it won't take > > MOVE.L #0(A2,D0),D2 >or > MOVE.L (0,A2,D0),D2 > >any hints on making this work? (i.e. what's the obvious answer that's >staring me in the face but I'm too spaced at the moment to see it?) > >THANKS in advance, netpeople!! I use move.l 0(a2,d0.l),d2 Note that you can use word or long index registers (word is sign-extended to 32 bits), so you need to specify the size. This is Manx-acceptable syntax. (I wrote a lot of "and.l 4(a4,d4.w),d5" code in a wierd inner loop a while back, so I was glad for the addressing mode's idiosyncracies.) -- -Colin