home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / mslang / vm / src / ems / ems4c.asm < prev    next >
Encoding:
Assembly Source File  |  1993-12-13  |  437 b   |  30 lines

  1.     .model    large,pascal
  2.  
  3.     include ems.inc
  4.  
  5.     .code    EMS_TEXT
  6.  
  7.     ;ERR PUBLIC __ErrEmsGetHandlePages(HEMS hems, PUSHORT pcPages);
  8.  
  9.     public    __ErrEmsGetHandlePages
  10. __ErrEmsGetHandlePages    proc    \
  11.     hems:word,        \
  12.     pcPages:ptr word
  13.  
  14.     mov    dx,[hems]
  15.     EmsCall 4Ch
  16.     jnz    Exit            ;Brif error
  17.  
  18.     ;BX = number of pages allocated to handle
  19.  
  20.     mov    cx,bx
  21.     les    bx,[pcPages]
  22.     mov    es:[bx],cx
  23.  
  24. Exit:
  25.     ret
  26.  
  27. __ErrEmsGetHandlePages    endp
  28.  
  29.     end
  30.