home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / memory / emslib / emsmapa.asm < prev    next >
Encoding:
Assembly Source File  |  1988-04-25  |  750 b   |  32 lines

  1.  
  2. emm_int   equ      67h
  3.  
  4.           if1
  5.           INCLUDE  model.mac
  6.           endif
  7.  
  8. header
  9.  
  10. begdataseg
  11.           EXTRN    _emserr     :byte
  12. enddataseg
  13.  
  14. begcodeseg
  15. procstart __emsmap  
  16.           push     bp
  17.           mov      bp,sp
  18.           mov      al,BYTE PTR [bp+4]  ; get physpg
  19.           mov      bx,WORD PTR [bp+6]  ; get logpg
  20.           mov      dx,WORD PTR [bp+8]  ; get handle
  21.           mov      ah,44h              ; Map memory function
  22.           int      emm_int             ; call EMM
  23.           mov      _emserr,ah          ; update emserr
  24.           mov      al,ah               ; shift ah into al
  25.           xor      ah,ah
  26.           pop      bp
  27.           ret
  28. procend   __emsmap  
  29. endcodeseg
  30.           END
  31.  
  32.