Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ptsfa!ihnp4!inuxc!pur-ee!uiucdcs!convex!infoswx!cramer From: cramer@infoswx.UUCP Newsgroups: comp.sys.m68k Subject: Re: Recent Motorola ad seen in Byte Message-ID: <125900004@infoswx> Date: Fri, 15-May-87 08:22:00 EDT Article-I.D.: infoswx.125900004 Posted: Fri May 15 08:22:00 1987 Date-Received: Sun, 17-May-87 19:44:17 EDT References: <362@sbcs.UUCP> Lines: 24 Nf-ID: #R:sbcs.UUCP:362:infoswx:125900004:000:770 Nf-From: infoswx.UUCP!cramer May 15 07:22:00 1987 > >>1. how would you code a string instruction like FFS (find first set bit) > >> to fit in something like the 68010's single instruction looping > >> feature/cache? > > moveq.l #31,D0 > > move.l ea,D1 > > loop asl.l #1,D1 > > dbcs loop > > > A minor point. According to "M68000 16/32-Bit Microprocessor", Programmer's > Reference Manual, Fourth Edition, page 218, Table G-1: > asl.l #1,D1 > is not listed as a loopable instruction. > > allen > For whatever it's worth, Table 4-11 of "68000 Microprocessor Handbook, 2nd Ed" (Osborne/McGraw-Hill) lists ASL as a loopable instruction. It seems likely to be one, in as much as it translates to a single word instruction (the basic requirement for loopable instructions). Bill Cramer !ihnp4!infoswx!cramer