Problem with Memory detection
Posted: Wed Dec 18, 2002 6:58 am
Hi,
is use this source code to detect the memory size:
xor eax, eax
mov ah, 0x88
int 0x15
add eax, 1024 ; 1024 KB == 1 MB
mov [mem_size_kbytes], eax
The problem is, when the memory is higher than 64 MB, the size is wrong. How can i dectect the memory correct in Real Mode ?
is use this source code to detect the memory size:
xor eax, eax
mov ah, 0x88
int 0x15
add eax, 1024 ; 1024 KB == 1 MB
mov [mem_size_kbytes], eax
The problem is, when the memory is higher than 64 MB, the size is wrong. How can i dectect the memory correct in Real Mode ?