Motorola M68EVB912B32 User Manual page 111

Table of Contents

Advertisement

The function implementing the new command can report any error conditions to the user in one
of two ways:
If the error condition can be described by one of the error messages in the enumerated
If some other message text needs to be conveyed to the user, the command should
enum Error {
noErr = 0,
WrongNumArgs = 6,
BadStartAddress = 7, /* Invalid Starting Address */
BadEndAddress = 8,
StartEndError = 9,
BadHexData = 10,
DataSizeError = 11,
NoTargetWrite = 12,
};
68EVB912B32UM/D
constant list below, the user-defined command should return the
appropriate constant.
communicate the error message directly to the user by using the
printf() function, which is one of the available user-callable C
functions. In this case, the user-defined command should return an
error code of noErr.
/* Define No Error */
/* Wrong Number of Arguments */
/* Invalid Ending Address */
/* Start Address Greater Than End Address */
/* Invalid Hex Data */
/* Data Out Of Range */
/* Can't Write Target Memory */
D-BUG12 CUSTOMIZATION DATA
D-5

Advertisement

Table of Contents
loading

Table of Contents