home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / OS2 / CODE1.S next >
Encoding:
Text File  |  1993-01-02  |  981 b   |  32 lines

  1. / code1.s (emx+gcc) -- Copyright (c) 1992-1993 by Eberhard Mattes
  2.  
  3.         .globl  _DosSetPriority
  4.  
  5. _DosSetPriority:
  6.         pushl   %ebp
  7.         movl    %esp, %ebp
  8.         pushl   %ecx                    / dummy
  9.         leal    -4(%ebp), %ecx
  10.         pushl   %ecx
  11.         call    _DosEnterMustComplete
  12.         addl    $1*4, %esp
  13.         pushl   %fs:4                   / stack base
  14.         pushl   %fs:8                   / stack limit
  15.         pushl   5*4(%ebp)
  16.         pushl   4*4(%ebp)
  17.         pushl   3*4(%ebp)
  18.         pushl   2*4(%ebp)
  19.         call    _DosTrueSetPriority
  20.         addl    $4*4, %esp
  21.         popl    %fs:8                   / stack limit
  22.         popl    %fs:4                   / stack base
  23.         pushl   %eax
  24.         leal    -4(%ebp), %ecx
  25.         pushl   %ecx
  26.         call    _DosExitMustComplete
  27.         addl    $1*4, %esp
  28.         popl    %eax
  29.         popl    %ecx                    / dummy
  30.         popl    %ebp
  31.         ret
  32.