🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.masscomp
1 messages
1 total messages Started by Stan Fri, 19 Jun 1987 23:26
your bcopy/bzero routines
#39
Author: 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]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads