mirror of
https://github.com/elliotnunn/supermario.git
synced 2024-12-03 00:51:48 +00:00
56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
|
; Version: 3.2
|
||
|
; Created: Friday, October 20, 1989 at 9:51:05 PM
|
||
|
;
|
||
|
; File: ShutDownEqu.a
|
||
|
;
|
||
|
; Assembler Interface to the Macintosh Libraries
|
||
|
; Copyright Apple Computer, Inc. 1987-1988
|
||
|
; All Rights Reserved
|
||
|
;
|
||
|
;--------------------------------------------------------------------
|
||
|
|
||
|
IF &TYPE('__IncludingShutDownEqu__') = 'UNDEFINED' THEN
|
||
|
__IncludingShutDownEqu__ 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
|