home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / doc / ems / disk2 / emm01_a.asm next >
Assembly Source File  |  1989-11-29  |  3KB  |  65 lines

  1. ;-----------------------------------------------------------------------------;
  2. ;      MODULE NAME:   EMM01_A.ASM                                             ;
  3. ;                                                                             ;
  4. ;    FUNCTION NAME:   get_EMM_status                                          ;
  5. ;                                                                             ;
  6. ;      DESCRIPTION:   This function returns a status code indicating whether  ;
  7. ;                     the memory manager is present and the hardware is       ;
  8. ;                     working correctly.                                      ;
  9. ;                                                                             ;
  10. ;           PASSED:   Nothing.                                                ;
  11. ;                                                                             ;
  12. ;         RETURNED:   status:                                                 ;
  13. ;                        is the status EMM returns from the call.  All other  ;
  14. ;                        returned results are valid only if the status        ;
  15. ;                        returned is zero.  Otherwise they are undefined.     ;
  16. ;                                                                             ;
  17. ; C USE CONVENTION:   unsigned int status;                                    ;
  18. ;                                                                             ;
  19. ;                     status = get_emm_status ();                             ;
  20. ;-----------------------------------------------------------------------------;
  21. .XLIST
  22. PAGE    60,132
  23.  
  24. IFDEF SMALL
  25.    .MODEL SMALL, C
  26. ENDIF
  27. IFDEF MEDIUM
  28.    .MODEL MEDIUM, C
  29. ENDIF
  30. IFDEF LARGE
  31.    .MODEL LARGE, C
  32. ENDIF
  33. IFDEF COMPACT
  34.    .MODEL COMPACT, C
  35. ENDIF
  36. IFDEF HUGE
  37.    .MODEL HUGE, C
  38. ENDIF
  39.  
  40. INCLUDE emmlib.equ
  41. INCLUDE emmlib.str
  42. INCLUDE emmlib.mac
  43. .LIST
  44. .CODE
  45.  
  46. get_EMM_status        PROC    
  47.  
  48.     ;---------------------------------------------------------------------;
  49.     ;   do;                                                               ;
  50.     ;   .   get status from EMM;                                          ;
  51.     ;---------------------------------------------------------------------;
  52.     MOVE        AH, get_status_fcn
  53.     INT         EMM_int
  54.  
  55.     ;---------------------------------------------------------------------;
  56.     ;   .   return (EMM status);                                          ;
  57.     ;   end;                                                              ;
  58.     ;---------------------------------------------------------------------;
  59.     RET_EMM_STAT    AH
  60.  
  61. get_EMM_status        ENDP
  62.  
  63. PAGE
  64. END
  65.