MEMORY SIZE CHECK INT 12H

NAME
Report Memory Size

SYNOPSIS

  • int 12h

FUNCTION

  • Reports the number of contiguous 1K memory blocks in the system (up to 640K).
Inputs Result
NONE AX = Total Memory size in Kilobytes (up to 640K)

NOTES

  • The value returned in AX is the same as that stored at memory location 0:0413h, which is initialized during the power-up tests
  • This is the amount of memory available to the entire system. This is not the amount of memory available to the user's program.
  • If the CMOS battery memory value is greater than the actual amount of memory, then the actual amount of memory is returned by this interrupt.

Last Update: 06.03.2024