🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.masscomp
Article #39

your bcopy/bzero routines

#39
From: Stan
Date: Fri, 19 Jun 1987 23:26
21 lines
1449 bytes
Stan,

You should tell people that they are only good for 64K worth
of moving/clearing. That can cause problems if you are using
them for more space. The move.l into d0 implies that you get all 32 bits
when in actuallity dbra only uses 16 bits worth of counter. Needless
to say, if you have a ~16bit number with a 1 in bit 16 (well, 15
if you count from 0) that the first internal short decrement that
happens as part of the dbra implementation gives you some
really wierd results......

stan

P.S.
if you do some shift-and-mask magic you can get the pointers long
aligned (hopefully) and use move.l to push the limit to 256K
per call. Or you can get really fancy and put it all in
an outer loop designed to iterate as needed.

[Thanks, Stan....I guess I get a little overzealous and don't cover
all the bases. -- sob]
Technical Details
Message-ID: <3142@soma.bcm.tmc.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!columbia!rutgers!sri-spam!mordor!lll-tis!ptsfa!hoptoad!academ!soma!masscomp-request via SMTP (AA02729); Fri, 19 Jun 87 17:46:52 CDT (AA04269); Fri, 19 Jun 87 17:43:58 CDT

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!columbia!rutgers!sri-spam!mordor!lll-tis!ptsfa!hoptoad!academ!soma!masscomp-request via SMTP (AA02729); Fri, 19 Jun 87 17:46:52 CDT (AA04269); Fri, 19 Jun 87 17:43:58 CDT
From: Stan@soma.bcm.tmc.edu
Newsgroups: comp.sys.masscomp
Subject: your bcopy/bzero routines
Message-ID: <3142@soma.bcm.tmc.edu>
Date: Fri, 19-Jun-87 19:26:52 EDT
Article-I.D.: soma.3142
Posted: Fri Jun 19 19:26:52 1987
Date-Received: Thu, 25-Jun-87 06:34:52 EDT
Sender: masscomp@soma.bcm.tmc.edu
Lines: 21
Approved: masscomp@soma.bcm.tmc.edu