home *** CD-ROM | disk | FTP | other *** search
- .model large,pascal
-
- include ems.inc
-
- .code EMS_TEXT
-
- ;ERR PUBLIC __ErrEmsGetUnallocatedPageCount(PUSHORT *pcPages, PUSHORT *pcPagesTotal);
-
- public __ErrEmsGetUnallocatedPageCount
- __ErrEmsGetUnallocatedPageCount proc \
- pcPages:ptr word, \
- pcPagesTotal:ptr word
-
- EmsCall 42h
- jnz Exit ;Brif error
-
- ;BX = unallocated pages
- ;DX = total pages
-
- mov cx,bx
- les bx,[pcPages]
- mov es:[bx],cx
-
- les bx,[pcPagesTotal]
- mov es:[bx],dx
-
- Exit:
- ret
-
- __ErrEmsGetUnallocatedPageCount endp
-
- end