Does anyone know how can I get the information about the size of RAM in protected mode? I know just only about one system - creating one big descriptor (4GB) and accessing into as long as General Protection Fault. (shitty system
If anyone know, please answer, or send mail to Tyruk@Email.cz
Thanx
---Tyruk
Comments
: If anyone know, please answer, or send mail to Tyruk@Email.cz
: Thanx
: ---Tyruk
:
You can always just ask BIOS before entering protected-mode.
Check out the following piece of code...
mov ax, 0E801h
int 15h
shl ecx, 10
shl edx, 16
add ecx, edx
add ecx, 100000h
mov DWORD PTR [TOTAL_MEM_IN_BYTES], ecx