Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <bios.h>
    unsigned short _bios_memsize( void );

Description:
    The _bios_memsize function uses INT 0x12 to determine the total amount
    of memory available.

Returns:
    The _bios_memsize function returns the total amount of 1K blocks of
    memory installed (maximum 640).

Example:
    #include <stdio.h>
    #include <bios.h>

    void main()
      {
        unsigned short memsize;

        memsize = _bios_memsize();
        printf( "The total amount of memory is: %dK\n",
                   memsize );
      }

    produces the following:

    The total amount of memory is: 640K

Classification:
    BIOS

Systems:
    DOS, Win, NT, DOS/PM

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson