home *** CD-ROM | disk | FTP | other *** search
- .model large,pascal
-
- include ems.inc
-
- .code EMS_TEXT
-
- ;ERR PUBLIC __ErrEmsGetHandlePages(HEMS hems, PUSHORT pcPages);
-
- public __ErrEmsGetHandlePages
- __ErrEmsGetHandlePages proc \
- hems:word, \
- pcPages:ptr word
-
- mov dx,[hems]
- EmsCall 4Ch
- jnz Exit ;Brif error
-
- ;BX = number of pages allocated to handle
-
- mov cx,bx
- les bx,[pcPages]
- mov es:[bx],cx
-
- Exit:
- ret
-
- __ErrEmsGetHandlePages endp
-
- end