home *** CD-ROM | disk | FTP | other *** search
- | this function is for baserel (NOT RESIDENT !) mode only !
-
- .globl _hookEntry
- _hookEntry:
- moveml a3/a4,sp@- | save a3/a4
-
- jsr _geta4 | get a4
-
- | save registers for C function that wants everything on the stack
-
- movel a1,sp@- | push message packet pointer
- movel a2,sp@- | push object pointer
- movel a0,sp@- | push hook pointer
-
- movel a0@(12),a3 | fetch C entry point ... (h_SubEntry)
- jsr a3@ | ... and call it
- lea sp@(12),sp | fix stack
- moveml sp@+,a3/a4 | load original a3/a4
- rts
-