sys7.1-doc-wip/Interfaces/AIncludes/ShutDown.a
2019-07-27 22:37:48 +08:00

68 lines
1.8 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;
; File: ShutDown.a
;
; Copyright: © 1991-1992 by Apple Computer, Inc., all rights reserved.
;
; Change History (most recent first):
;
; <6> 7/1/92 DCL This file is the replacement for the now obsolete ShutDownEqu.a.
; Changed the 'including' name to match the new file name.
; <5> 1/30/91 gbm sab, #38: Change the already including this file variable to
; all uppercase (for security reasons)
;
; To Do:
;
; Assembler Interface to the Macintosh Libraries
; Copyright Apple Computer, Inc. 1987-1988
; All Rights Reserved
;
; 1.0 CCH 11/ 9/1988 Adding to EASE.
; END EASE MODIFICATION HISTORY
;•1.1 CCH 9/14/1988 Updated EASE with the current rev of this file.
;--------------------------------------------------------------------
IF &TYPE('__INCLUDINGSHUTDOWN__') = 'UNDEFINED' THEN
__INCLUDINGSHUTDOWN__ SET 1
; Masks for ShutDwnInstall procedure
sdOnPowerOff EQU 1 ; call procedure before power off
sdOnRestart EQU 2 ; call procedure before restart
sdOnUnmount EQU 4 ; call procedure before unmounting
sdOnDrivers EQU 8 ; call procedure before closing drivers
sdRestartOrPower EQU 3 ; call before either power off or restart
; ShutDown Selectors:
sdPowerOff EQU 1
sdRestart EQU 2
sdInstall EQU 3
sdRemove EQU 4
MACRO
_SDPowerOff
MOVE.W #sdPowerOff,-(SP)
DC.W $A895 ; _ShutDown
ENDM
MACRO
_SDRestart
MOVE.W #sdRestart,-(SP)
DC.W $A895 ; _ShutDown
ENDM
MACRO
_SDInstall
MOVE.W #sdInstall,-(SP)
DC.W $A895 ; _ShutDown
ENDM
MACRO
_SDRemove
MOVE.W #sdRemove,-(SP)
DC.W $A895 ; _ShutDown
ENDM
ENDIF ; ...already included