Hello,
>On 2001-04-18 12:04:40, kp wrote:
>I'm writing a bootloader in Nasm. How do I get
>information like: Conventional memory, Extended memory
You can get the BIOS's interrupts list from Mr.
Ralf Brown at
http://www.ctyme.com/rbrown.htm,
which will have a section on memory.
>and print this on the screen. And how do I check
>if my CPU is a 32-bit?
This you will have to make sure you perserved the EDX
register from the very beginning after booting. It was
quoted from this place,
http://webster.cs.ucr.edu/Page_asm/Doc386/S10_01.HTM,
where it suggested the idea that DH will hold 3 if
the target CPU is a 80386, and if not than it's not. Do
not assume though that it will be 4 when on 80486, but possible.
>I'm very glad if you can give me some sample code.
Sorry I don't have any codes to say ...