??? 07/13/06 06:21 Read: times |
#120149 - MSB vs LSB Responding to: ???'s previous message |
hi,
Vishal Sinha said:
Read the highest order byte first from the EEPROM compare it with the corresponding digit from the RAM. If equal continue with the next byte, if not equal draw conclusion (no need to read and compare the other digits).
When two numbers need to be true compared (here: function returns either more, less or equal) so yes, we should start from MSB for speed up. When two regular numbers (like versions, serial numbers etc) are compared for equality only then I preffer to start from LSB due there is better chance to catch difference fastly with this way. Regards, Oleg |
Topic | Author | Date |
10digit comparision | 01/01/70 00:00 | |
Comparing bytewise? | 01/01/70 00:00 | |
MSB first. | 01/01/70 00:00 | |
... or not | 01/01/70 00:00 | |
MSB vs LSB | 01/01/70 00:00 | |
more info, please | 01/01/70 00:00 | |
less info ! | 01/01/70 00:00 | |
then I miss something | 01/01/70 00:00 | |
Come on, Andy! | 01/01/70 00:00 | |
I m not so sure - no it wasn't me either | 01/01/70 00:00 | |
Logic | 01/01/70 00:00 | |
That is - XOR | 01/01/70 00:00 | |
What is? | 01/01/70 00:00 | |
Yes!![]() | 01/01/70 00:00 |