home *** CD-ROM | disk | FTP | other *** search
- .model large,pascal
-
- include ems.inc
-
- .code EMS_TEXT
-
- ;ERR PUBLIC __ErrEmsGetAttributeCapability(PBYTE pbCapability);
-
- public __ErrEmsGetAttributeCapability
- __ErrEmsGetAttributeCapability proc \
- pbCapability:ptr byte
-
- mov ax,5202h
- int 67h
-
- ;AL = attribute capability
-
- les bx,[pbCapability]
- mov es:[bx],al
-
- xchg al,ah ;AL = Error code
- cbw ;AH = 00 or FF
- or ax,ax ;Any error
- jz Exit ;Brif not, return errNoError = 0
- add ax,errEmsBase-0FF80h ;Map to ERR value
-
- Exit:
- ret
-
- __ErrEmsGetAttributeCapability endp
-
- end