Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!sri-unix!sri-spam!mordor!lll-tis!lll-lcc!unisoft!hoptoad!academ!soma!masscomp-request From: jbuck@epimass.EPI.COM (Joe Buck) Newsgroups: comp.sys.masscomp Subject: Re: assembler routine for bcopy Message-ID: <3133@soma.bcm.tmc.edu> Date: Mon, 15-Jun-87 05:20:01 EDT Article-I.D.: soma.3133 Posted: Mon Jun 15 05:20:01 1987 Date-Received: Sun, 21-Jun-87 08:51:03 EDT References: <3130@soma.bcm.tmc.edu> Sender: masscomp@soma.bcm.tmc.edu Organization: Entropic Processing, Inc., Cupertino, CA Lines: 14 Approved: masscomp@soma.bcm.tmc.edu Summary: warning: bogus bcopy In article <3130@soma.bcm.tmc.edu>, sob@soma.bcm.tmc.edu (Stan Barber) writes: > Here is an assembler routine to use in place of bcopy(). It's fine as long as the number of bytes to copy is greater than zero. If given a zero length argument, it will copy 2^32 bytes! The fix is easy: add a conditional branch after copying the length argument to d0. -- - Joe Buck jbuck@epimass.EPI.COM (in the brave new world of domains!) {seismo,ucbvax,sun,decwrl,}!epimass.epi.com!jbuck [ARRGH! Thanks Joe. I forgot that....It has been a long time since I write assembly... sigh-- sob]