[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nsbasic-palmapi
Subject:    Re: [nsbasic-palmAPI] CRC-16 - Sample code...
From:       Manuel Fraguas <fraguas () seven ! com ! br>
Date:       2004-11-22 5:05:18
Message-ID: 6.0.1.1.2.20041122030515.01da1720 () pop3 ! seven ! com ! br
[Download RAW message or body]


Ok...

I'm trying your sample, using "ABCD1234" (and 0 as seed).
The result is a NEGATIVE number....   :(

Strange.... But I'm testing...

Thanks for your help, ok?

[]s,
Manuel Fraguas

At 22/11/2004 01:52 Monday, you wrote:

>Manuel,
>
> >One question: This calc is compatible with the old CRC calc,
> >used on DOS applications, for string validation?
>
>I have no idea.  The Palm OS docs simply state it uses the "table lookup
>method", but doesn't list the table of hex values used.  I suspect (but don't
>have any solid evidence) that the algorithm is the same, but coudn't guarantee
>the lookup tables are standardized.  My SWAG is that they should be, otherwise
>doing CRC checks in a multi-platform environment would be seemingly tough.
>
>I've not used them myself -- I was just answering your question on how to
>prototype the SysTrap from within NSB/Palm.  Based on the SDK docs, my answer
>should in theory do that.
>
>The SDK docs don't address how the CRC is calculated, so I can't give you any
>more definition information.
>
>If you are trying to match some historical data, I'd just run some tests 
>and see
>what you come up with.
>
>Doug



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/9rHolB/TM
--------------------------------------------------------------------~-> 

Complete Searchable Archive:
 http://marc.theaimsgroup.com/?l=nsbasic-palmapi&r=1&w=2

Community email addresses:
 Post message: nsbasic-palmAPI@yahoogroups.com 
 Subscribe:  nsbasic-palmAPI-subscribe@yahoogroups.com  
 Unsubscribe:  nsbasic-palmAPI-unsubscribe@yahoogroups.com 
 List owner:  nsbasic-palmAPI-owner@yahoogroups.com 

Shortcut URL to this page:
 http://groups.yahoo.com/group/nsbasic-palmAPI
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/nsbasic-palmAPI/

<*> To unsubscribe from this group, send an email to:
    nsbasic-palmAPI-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic