Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMMON DEF CHKSUM_IDAT(ARRAY%)
- VAR SUM%, I%, J%, V%, O%
- FOR I% = 0 TO LEN(ARRAY%) - 1
- FOR J% = 3 TO 0 STEP -1
- O% = J% * 8
- V% = (ARRAY[I%] AND (&HFF << O%)) >> O%
- SUM% = SUM% + V% AND &HFFFF
- NEXT
- NEXT
- RETURN SUM%
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement