home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / PIPE3310.LHA / pipe3310 / src / addtask.a next >
Encoding:
Text File  |  1994-12-30  |  463 b   |  30 lines

  1. ;
  2. ; addtask.a (pipe)
  3. ;
  4. ; Copyright (c) 1994 Ville Saari
  5. ; All rights reserved
  6. ;
  7. ; Created: 30-Dec-94
  8. ;
  9.  
  10.         csect    text
  11.  
  12. _addtaskfunc:    move.l    a0,-(sp)
  13.         move.l    4.w,a0        ; AbsExecBase
  14. cmpcmd:        cmp.l    #0,276(a0)    ; ExecBase->ThisTask
  15.         bne.b    skip
  16. movecmd:    move.l    a1,0.l
  17. skip:        move.l    (sp)+,a0
  18.         dc.w    $4ef9        ; jmp
  19. _origaddtask:
  20.  
  21. _mytaskptr:    equ    cmpcmd+2
  22. _newtaskptrptr:    equ    movecmd+2
  23.  
  24.         xdef    _addtaskfunc
  25.         xdef    _mytaskptr
  26.         xdef    _newtaskptrptr
  27.         xdef    _origaddtask
  28.  
  29.         end
  30.