🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.masscomp
Article #37

Re: assembler routine for bcopy

#37
From: Joe Buck
Date: Mon, 15 Jun 1987 09:20
14 lines
1280 bytes
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,<smart-site>}!epimass.epi.com!jbuck

[ARRGH! Thanks Joe. I forgot that....It has been a long time since I
write assembly... sigh-- sob]
Technical Details
Message-ID: <3133@soma.bcm.tmc.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!husc6!sri-unix!sri-spam!mordor!lll-tis!lll-lcc!unisoft!hoptoad!academ!soma!masscomp-request
References: <3130@soma.bcm.tmc.edu>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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