home *** CD-ROM | disk | FTP | other *** search
- | this function is for resident (ONLY RESIDENT !) mode only !
-
- .globl _hookEntryResa1a2
- _hookEntryResa1a2:
- moveml a3/a4,sp@- | save a3/a4
-
- movel a0@(16),a4 | get a4 from h_Data (hope it's there or we could get a nice crash if we use global data :-//
-
- | 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@(12),a3 | fetch C entry point ... (h_SubEntry)
- jsr a3@ | ... and call it
- lea sp@(8),sp | fix stack
- moveml sp@+,a3/a4 | load original a3/a4
- rts
-