Function shut generate Xor Checksum over 4 variables

This post should put you on the right track...