boot3/Interfaces/AIncludes/ShutDown.a
Elliot Nunn 5b0f0cc134 Bring in CubeE sources
Resource forks are included only for .rsrc files. These are DeRezzed into their data fork. 'ckid' resources, from the Projector VCS, are not included.

The Tools directory, containing mostly junk, is also excluded.
2017-12-26 10:02:57 +08:00

68 lines
1.8 KiB
Plaintext

;
; 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