Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!oliveb!felix!ccicpg!allen From: allen@ccicpg.UUCP Newsgroups: comp.sys.m68k,comp.sys.intel Subject: Re: Recent Motorola ad seen in Byte Message-ID: <1026@ccicpg.UUCP> Date: Tue, 12-May-87 00:04:55 EDT Article-I.D.: ccicpg.1026 Posted: Tue May 12 00:04:55 1987 Date-Received: Thu, 14-May-87 05:01:48 EDT References: <8705030305.AA18195@cory.Berkeley.EDU> <280@fornax.uucp> Reply-To: allen@ccicpg.UUCP (Allen Brumm) Organization: CCI CPG, Irvine CA Lines: 17 Xref: utgpu comp.sys.m68k:443 comp.sys.intel:220 >>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