home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / alde_c / misc / util / super_c / eqlib.asm < prev    next >
Encoding:
Assembly Source File  |  1980-01-01  |  1.3 KB  |  36 lines

  1. ;               Equipment Configuration Library
  2.  
  3. _TEXT   segment byte public 'CODE'      ; Place the code in the code segment
  4.         assume  CS:_TEXT                ; Assume the CS register points to it
  5.  
  6. ; _memSz()
  7. ;
  8. ; Function: Return the number of 1K blocks of memory in the system.
  9. ;
  10. ; Algorithm: Just call the ROM BIOS via interrupt 10H.
  11.  
  12.         public  _memSz          ; This routine is public (available to
  13.                                 ; other modules)
  14.  
  15. _memSz  proc near               ; _memSz is a NEAR type subroutine
  16.         int     12H             ; Call the ROM BIOS with interrupt 12 (hex)
  17.         ret                     ; Return to the calling program
  18. _memSz  endp                    ; End of subroutine
  19.  
  20. ; _getEq()
  21. ;
  22. ; Function: Return the current equipment configuration.
  23. ;
  24. ; Algorithm: Call ROM BIOS interrupt 11H to get the configuration.
  25.  
  26.         public  _getEq          ; Routine is available to other modules
  27.  
  28. _getEq  proc near               ; NEAR type subroutine
  29.         int     11H             ; Call the ROM BIOS with interrupt 11 (hex)
  30.         ret                     ; Return to calling program
  31. _getEq  endp                    ; End of subroutine
  32.  
  33. _TEXT   ends                    ; End of code segment
  34.         end                     ; End of assembly code
  35.  
  36.