Memory size (INT 0x15, ah=0x88)

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
artrecks
Posts: 23
Joined: Wed Jul 11, 2007 8:24 pm

Memory size (INT 0x15, ah=0x88)

Post by artrecks »

using this function

Code: Select all

SYSTEM - GET EXTENDED MEMORY SIZE (286+)

AH = 88h

Return:
CF clear if successful
AX = number of contiguous KB starting at absolute address 100000h
CF set on error
AH = status 80h invalid command (PC,PCjr)
       86h unsupported function (XT,PS30) 
I get the CF set, but, checking AX I get RAM size from 0x0000 to 64MB ( I used VirtualPC for testing, and I changing the ram size, I got the size in ax ( ramsize - 1024 kb ) but I got the CF set too?? Why I got it set if I could got the ram size?

EDIT: On my real computer ( 512 MB ) I Got 0xFFC0 and the carry flag set too.
Ninjarider
Member
Member
Posts: 62
Joined: Fri Jun 29, 2007 8:36 pm

Post by Ninjarider »

your computers trying to say it has 64 meg
if cf is set there was an error reading it.
Post Reply