Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!husc6!osf!dbrooks From: dbrooks@osf.OSF.ORG (David Brooks) Newsgroups: comp.sys.atari.st Subject: Re: assemblers Message-ID: <775@osf.OSF.ORG> Date: 8 May 89 04:57:53 GMT References: <1837@blake.acs.washington.edu> <534@TSfR.UUCP> <99@sdcc10.ucsd.EDU> <1480@atari.UUCP> Reply-To: dbrooks@osf.org (David Brooks) Organization: Open Software Foundation Lines: 20 In article <1480@atari.UUCP> apratt@atari.UUCP (Allan Pratt) writes: [...] >Lastly, AS68 makes at least one illegal optimization. Assuming that a >missing size modifier means the same as .w, the optimization > > move #1,d0 --> moveq.l #1,d0 > >which AS68 does is illegal. MadMac does moveq, addq, and subq >optimization correctly. I'd always thought of the as "Here, assembler, I don't care about the most significant three bytes; you do whatever's best". (hacker's note: moveq.l is faster than the other forms of move-literal; it sign-extends one byte across the whole long). If I *do* care, I get specific. -- David Brooks dbrooks@osf.org Open Software Foundation uunet!osf.org!dbrooks 11 Cambridge Center Personal views, not necessarily those Cambridge, MA 02142, USA of OSF, its sponsors or members.