Free XMS

new topic     » topic index » view thread      » older message » newer message

Hello all,

I need a function to detect the amount of free xms memory during a program.
I know how to detect if XMS driver is loaded and to get the driver Entry
Point using interrupt 2Fh, however I do not know how to do a assembly
function in Euphoria. The assembly looks something
like this

xmaadress is the 32 bit address of the entry point.
dx stores the amount of free xms in K

pushad
mov ah, 08h
call [xmaadress]
mov [freemem], dx
popad
ret

I need to be able to return the freemem value.

Thanks for the help in advance,

Greg Harris

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu