Talk:Detecting Memory (x86): Difference between revisions

(→‎INT 0x12: new section)
Line 22:
The [http://www.ctyme.com/intr/rb-0598.htm RBIL] doesn't say this interrupt returns error, and it's impossible, since this function was there since the very first IBM PC computer, so there was no need to set/reset the carry flag. It's not possible for this function not to be supported. In fact, I had trouble with this and it didn't work for me until I removed the error checking.
[[User:Unsigned|Unsigned]] 19:15, 22 August 2015 (CDT)
 
: RBIL does say that different functions are invoked for certain values for AX, so you broke the code there. It also states that it might return the value directly from the BDA, which isn't reserved memory and might have changed. A listing in RBIL does not preclude presence in all emulators either. Maybe the more correct way for your code is to clear carry ahead of time (BIOSes are known to be lacking in that), or defer to E820 anyway when int 0x12 fails. - [[User:Combuster|Combuster]] 02:56, 23 August 2015 (CDT)
1,490

edits