home *** CD-ROM | disk | FTP | other *** search
-
- emm_int equ 67h
-
- if1
- INCLUDE model.mac
- endif
-
- header
-
- begdataseg
- EXTRN _emserr :byte
- enddataseg
-
- begcodeseg
- procstart __emsmap
- push bp
- mov bp,sp
- mov al,BYTE PTR [bp+4] ; get physpg
- mov bx,WORD PTR [bp+6] ; get logpg
- mov dx,WORD PTR [bp+8] ; get handle
- mov ah,44h ; Map memory function
- int emm_int ; call EMM
- mov _emserr,ah ; update emserr
- mov al,ah ; shift ah into al
- xor ah,ah
- pop bp
- ret
- procend __emsmap
- endcodeseg
- END
-
-