mirror of
https://github.com/elliotnunn/mac-rom.git
synced 2025-01-01 11:29:27 +00:00
0ba83392d4
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.
64 lines
1.3 KiB
Plaintext
64 lines
1.3 KiB
Plaintext
;
|
|
; File: ROM_EMDispatch.a
|
|
;
|
|
; Contains: xxx put contents here xxx
|
|
;
|
|
; Written by: xxx put writers here xxx
|
|
;
|
|
; Copyright: © 1992 by Apple Computer, Inc., all rights reserved.
|
|
;
|
|
; Change History (most recent first):
|
|
;
|
|
; <1> 11/5/92 RB first checked in
|
|
;
|
|
;
|
|
|
|
;
|
|
;
|
|
; © Copyright 1991 Apple Computer, Inc. All Rights Reserved.
|
|
; By Ricardo Batista
|
|
;
|
|
; OSDispatch fake routine for boot time use of menus.
|
|
;
|
|
;
|
|
|
|
INCLUDE 'Traps.a' ; for debugger trap
|
|
|
|
ROM_EM_OSDISPATCH PROC EXPORT
|
|
|
|
move.l (sp)+,a0 ; recover return address
|
|
move.w (sp)+,d0 ; get selector number
|
|
cmpi.w #$3E,d0 ; is this from the menu MBDF ?
|
|
beq.s @L4 ; recover 4 longs
|
|
cmpi.w #$1D,d0 ; is this from the MDEF ?
|
|
beq.s @L2 ; recover 2 longs
|
|
cmpi.w #$37,d0 ; is it the sound manager calling ?
|
|
beq.s @SM ; deal with it
|
|
cmpi.w #$3A,d0 ; is it GetProcessInfo ?
|
|
beq.s @L2W
|
|
_Debugger
|
|
|
|
@L2W
|
|
adda.l #8,a7 ; recover 2 longs
|
|
move.w #1,(sp) ; set error result
|
|
jmp (a0) ; return to whoever
|
|
|
|
@L4
|
|
adda.l #16,a7 ; recover 4 longs
|
|
clr.w (sp) ; set no error (word)
|
|
jmp (a0) ; return to MBDF
|
|
|
|
@L2
|
|
adda.l #8,a7 ; recover 2 longs
|
|
clr.l (sp) ; clear result (long pointer)
|
|
jmp (a0) ; return to MDEF
|
|
|
|
@SM
|
|
adda.l #4,a7 ; recover one long
|
|
clr.w (sp) ; clear result
|
|
jmp (a0) ; return to sound manager
|
|
|
|
ENDPROC
|
|
|
|
|
|
END |