Protected Mode - Mem. size information

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

  • : 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

    :



    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


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories