home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Developer CD 2.1
/
Amiga Developer CD v2.1.iso
/
Reference
/
DevCon
/
Milan_1991
/
Devcon91.1
/
Libraries
/
IFFParse
/
modules
/
Hook.asm
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Assembly Source File
|
1992-09-01
|
407 b
|
22 lines
* HookEntry for Lattice
INCLUDE "exec/types.i"
INCLUDE "utility/hooks.i"
XDEF _HookEntry
section code
_HookEntry:
move.l a6,-(sp)
move.l a1,-(sp) ; push message packet pointer
move.l a2,-(sp) ; push object pointer
move.l a0,-(sp) ; push hook pointer
move.l h_SubEntry(a0),a0 ; fetch C entry point ...
jsr (a0) ; ... and call it
lea 12(sp),sp ; fix stack
move.l (sp)+,a6
rts
end