🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #40621

Re: Problem with asm in MEGAMAX-C

#40621
From: Daniel A. Glasser
Date: Thu, 08 Feb 1990 14:51
17 lines
1429 bytes
> In article <9001300801.AA16463@ucbvax.Berkeley.EDU> K298027@CZHRZU1A.BITNET (Michael Mueller) writes:
> >        move.l #init,A0         ; this is not accepted !!!!!
> >
> >Why is the second mnemonic not accepted ? Has anybody an idea how to use
> >labelled adresses ?

I don't have the MegaMax-C compiler, so I can't test this out, but the
68000 has two distinct sets of instructions for dealing with address and
data registers.  The move.l instruction is for data registers.  You might
want to try the movea.l instruction instead.  If neither of these work for
you in the MegaMax assembly escapes, try using lea init, a0 (load effective
address to A0) instead.  This has the same effect.
-- 
 _____________________________________________________________________________
    Daniel A. Glasser                 "Their brains were small and they died."
    uwvax.cs.wisc.edu!per2.uucp!dag
 ---Persoft, Inc.---------465 Science Drive-------Madison, WI 53711-----------
Technical Details
Message-ID: <895@per2.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!uwm.edu!uwvax!per2!dag
References: <9001300801.AA16463@ucbvax.Berkeley.EDU> <1139@carroll1.cc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!uwm.edu!uwvax!per2!dag
From: dag@per2.UUCP (Daniel A. Glasser)
Newsgroups: comp.sys.atari.st
Subject: Re: Problem with asm in MEGAMAX-C
Summary: movea.l in place of move.l should work...
Message-ID: <895@per2.UUCP>
Date: 8 Feb 90 14:51:16 GMT
References: <9001300801.AA16463@ucbvax.Berkeley.EDU> <1139@carroll1.cc.edu>
Organization: Persoft Inc., Madison, WI
Lines: 17