Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!cc.utah.edu!cc.usu.edu!sl195 From: sl195@cc.usu.edu (A banana is not a toy) Newsgroups: comp.sys.amiga Subject: 68k asm question Message-ID: <1991Jan2.104349.45968@cc.usu.edu> Date: 2 Jan 91 16:43:49 GMT Lines: 32 I've been writing 68k code using SAS/C5.1's asm. The description in the manuals describe this as using the standard Motorola formats for the code, but I've not been able to get this to compile: MOVE.W #0(A0,D0),D2 MOVE.W #0(A0,D1),D3 What I want is to be able to access a word in an array whose base address is in A0, and whose displacement is stored in D0 and D1 (longwords). I've also tried the following without it compiling, either: MOVE.W (0,A0,D0),D2 MOVE.W (0,A0,D1),D3 Anybody know what I'm not doing? (Yes, it's probably obvious and I'm just spacing it off.....) Anyhow, THANKS in advance!!! -- 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.