Hello, Can anyone explain the syntax of a .HEX-file, which is created by MPASM (v1.40) during compiling (actually assembling)? A single line in the file looks roughly like this : :AAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBCC I think the meaning of each line-part is : AAAAAAAA = some kind of offset /address BBBBBBBB = actual object-code CC = some kind of checksum I specifically need to know how CC is calculated because i need to program a couple of hundred 12c508-OTP's for a project where the object-code for every PIC needs to be slightly different. I found the instruction that i need to modify in the HEX-file, but i don't know how to re-calculate the checksum. PS. What happens if I change the code, do not re-calculate the checksum and just program a pic ? Max Dekkers (mdekkers@inter.nl.net)