;************************************************************** ;*** EMS51.ASM *** ;*** *** ;*** function EMS_EmBlk.reallocHandPages40( *** ;*** pages: Word) *** ;*** : Boolean; *** ;*** *** ;*** Reallocates number of pages to EMM handle *** ;*** *** ;*** Returns 0 if no error or an error code. *** ;*** *** ;*** *** ;*** *** ;*** (Ems Version 4.0) *** ;************************************************************** .model large,pascal include emsdefs.asm extrn errno:WORD ; ; Define entry point ; public EMS_EmBlk@reallocHandPages40 .code EMS_EmBlk@reallocHandPages40 proc num:Word, handle:Far Ptr Word les bx,handle mov dx,es:[bx] ; EMS handle mov bx,num ; New page count mov ax,ReallocHandPages40 ; Make the call int Ems or ah,ah ; Set flags jnz error xor ax,ax ; Return OK ret error: mov al,ah ; AL get error code xor ah,ah ; Zero extend mov errno,ax ; Save in errno too ret EMS_EmBlk@reallocHandPages40 endp ; End of procedure end ; End of source file