home *** CD-ROM | disk | FTP | other *** search
- ;-----------------------------------------------------------
- ; aztecglue.asm
- ;
- ; This is the actual dispatch routine that will be called.
- ; It pushes arguments on the stack and then calls our C
- ; dispatch function, storing the result string in A0.
- ;
- public _Dispatch
- public _ARLibDispatch
- public _geta4
-
- _Dispatch:
- movem.l d2/d3/d4-d7/a2-a6,-(sp)
- jsr _geta4
-
- subq.l #4,sp ; Create temporary variable
- move.l sp,-(sp) ; Push return pointer
- move.l a0,-(sp) ; Push argument
- jsr _ARLibDispatch ; D0 = error code
- addq.l #8,sp ; Restore stack
- movea.l (sp)+,a0 ; Result string
-
- movem.l (sp)+,d2/d3/d4-d7/a2-a6
- rts
-
- end
-