CheckSum

Top 

 

 

unsigned long CheckSum(unsigned long start_addr, unsigned long end_addr, int addr_space);

 Description

Calculates checksum for data in the addr_space memory{addr_sp} starting at start_addr and ending at end_addr. Checksum is calculated by simple addition of byte values.

 Return Value

32-bit checksum.

 Example

printf("%08lX", CheckSum(0, 0x1FFF, SubLevel(1, 0)));