Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Operating System Utilities /
Chapter 7 - Parameter RAM Utilities / Parameter RAM Utilities Reference
Routines /


InitUtil

System software uses the InitUtil function at startup time to copy values from parameter RAM and date and time information into low memory. Your application should never need to use this function.

FUNCTION InitUtil: OSErr;
DESCRIPTION
The InitUtil function copies the contents of parameter RAM into 20 bytes of low memory and calls the Date, Time, and Measurement Utilities' ReadDateTime function to copy the date and time from the clock chip into a separate low-memory location.

If the validity status in parameter RAM is not $A8 when InitUtil is called, InitUtil returns a non-zero result code. In this case, the default values are read into the low-memory copy of parameter RAM; these values are then written to the clock chip.

ASSEMBLY-LANGUAGE INFORMATION
The registers on exit for the InitUtil function are
Registers on exit
D0Result code

RESULT CODES
noErr0No error
prInitErr-88Validity status not $A8
SEE ALSO
For more information about the ReadDateTime function, see the chapter "Date, Time, and Measurement Utilities" in this book.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996