Hardware memory size (INT 12h)

Return:
AX = number of contiguous 1K blocks of memory