Need info on BIOS INT for Memory Map

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
K.J.

Need info on BIOS INT for Memory Map

Post by K.J. »

--------b-15E820-----------------------------
INT 15 - newer BIOSes - GET SYSTEM MEMORY MAP
AX = E820h
EAX = 0000E820h
EDX = 534D4150h ('SMAP')
EBX = continuation value or 00000000h to start at beginning of map
ECX = size of buffer for result, in bytes (should be >= 20 bytes)
ES:DI -> buffer for result (see #00560)
Return: CF clear if successful
EAX = 534D4150h ('SMAP')
ES:DI buffer filled
EBX = next offset from which to copy or 00000000h if all done
ECX = actual length returned in bytes
CF set on error
AH = error code (86h) (see #00475 at INT 15/AH=80h)


That is all the info I can find on that BIOS function. I am trying to impliment it in Bochs, but am unable to due to a lack of information on it. If someone could post some exaple code of actually using it, or a link to more info about it, that would be great.

Thanks in advance,
K.J.
Post Reply