_SMALLTALK AND EMBEDDED SYSTEMS_ by John Duimovich and Mike Milinkovich Example 1 (a) checkSum "Answer a twos complement checksum of the receiver." ^ self primitiveFailed (b) #include "userprim.h" DEFINE_USER_PRIMITIVE( checkSum ) { char *buffer; unsigned int size; unsigned short chkSum; char *V_objectByteAddress(); buffer = V_objectByteAddress(PARAM(1)); size = V_objectSize (PARAM (1)); for (i=0;i