Date : Wed, 25 Oct 2006 09:30:20
From : Steve O'Leary <navalenigma@...>
Subject: Re: ADFS sector checksums
--_65d2cafa-ceda-409b-9075-d0e8482231ad_
> Date: Wed, 25 Oct 2006 01:28:49 +0100> From: jgh@...> To:
bbc-micro@...> Subject: [BBC-Micro] Re: ADFS sector checksums> >
>Message-ID: <BAY124-W22456538EF9A1042365DA6B20C0@...>> > Steve O'Leary
<navalenigma@...> wrote:> > > From: jon.welch@ntlworld.com> To:
navalenigma@...> CC:> > bbc-micro@cloud9.co.uk> Subject: Re:
[BBC-Micro] ADFS sector checksums>> Date: Thu,> > 19 Oct 2006 15:38:25 +0100> > >
Can anyone give me a definitive answer on> > ADFS checksums> > I use the
following code in my software :> > ' the> checksum> > is done by summing each
byte > ' into the accumulator> ' but not bothering> > to clear the carry, >
' so each overflow adds one> ' to the total. Clear> > carry before the
first add.> > Function CalcCRC(o As Long)> > Dim c As> > Integer> Dim i As
Integer> Dim crc As Integer> > ' LOCAL a%, c%: a%=&FF:> > Eughh! What's all
that? Fix your email client.> > -- > J.G.Harston - jgh@... -
mdfs.net/User/JGH> RISC OS Internationalisation -
http://mdfs.net/Software/RISCOS>
If only I worked at Microsoft and could do so ;) I had messed about with
this post
by copying it out into another editor first and pasting back in which
seems to have
messed it up somewhat, won't do that again !
_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d
--_65d2cafa-ceda-409b-9075-d0e8482231ad_