🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.amiga.tech
2 messages
2 total messages Started by A banana is not a toy Wed, 02 Jan 1991 22:44
68k Asm Q re - indexed eff. addr. (HELP)
#7794
Author: A banana is not a toy
Date: Wed, 02 Jan 1991 22:44
23 lines
1285 bytes
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!!



-- 

All comments are my own, and many must be taken with a :-)
=============================++++++++++++++++++++=============================
| Demetrios Triandafilakos  | James Knowles     | "Remember, always remember,|
| Shire of Cote du Ciel     | BITNET: SL195@USU |  my son -- a banana is not |
| Principality of Artemesia | INTERNET:         |  a toy."                   |
| Kingdom of Atenvelt       |  sl195@cc.usu.edu |          - The Wise Guru   |
=============================++++++++++++++++++++=============================
    Be all that you can be - see your local SCA Knight Marshal now.
Re: 68k Asm Q re - indexed eff. addr. (HELP)
#7988
Author: Colin Plumb
Date: Fri, 11 Jan 1991 04:33
22 lines
1206 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads