supermario/base/SuperMarioProj.1994-02-09/QuickDraw/Patches/ClassicQDPatches.a

72 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2019-06-29 15:17:50 +00:00
;
; File: ClassicQDPatches.a
;
; Contains: patches used on all B&W QuickDraw machines
;
; Copyright: © 1989 by Apple Computer, Inc., all rights reserved.
;
; Change History (most recent first):
;
; <1> 12/28/89 dba first checked in
; 12/28/89 dba used ClassicGWorld here
;
; To Do:
; move macros to some lucky file
;
load 'StandardEqu.d'
include 'QDOffscreenEqu.a'
include 'PatchMacros.a'
; put these in some romantic equate file when you are inspired
macro
_NewHandleCommaTemp
import NewHandleCommaTemp
bsr NewHandleCommaTemp
endm
macro
rtd_a0 &params
if &eval(&params) = 0 then
rts
else
if &setting('MACHINE') <> 'MC68000' then
rtd #&params
else
if &eval(&params) = 4 then
move.l (sp)+,(sp)
rts
elseif &eval(&params) <= 8 then
move.l (sp)+,a0
addq #&params,sp
jmp (a0)
else
move.l (sp)+,a0
lea &params(sp),sp
jmp (a0)
endif
endif
endif
endm
include 'ClassicGWorld.a'
CutBackPt PROC EXPORT
EntryTable QDExtDispatcher,$AB1D ; GWorld for Classic QuickDraw
EntryTable 0
ENDPROC
InitPatches proc export
FixROMAddresses
lea CutBackPt,a0
rts
endproc
end