Detecting Memory (x86): Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
Put back the old code after reading RBIL on the matter. |
|||
Line 31:
Usage:
<source lang="asm">
; Switch to the BIOS (= request low memory size).
int 0x12
; AX = amount of continuous memory in
</source>
Note: this function always works and may not modify the carry flag, so the contents of AX should be trusted and CF should be ignored.
Alternately, you can just use INT 0x15, EAX = 0xE820 (see below).
|