NU113738@NDSUVM1.BITNET (02/15/89)
Well, I don't have a source code for you since I'm too lazy to dig through my disks for an example, but I do know the basics of how its done. First of all, you have to use INTerrupt 21H feature. You use function 48H. Bx = $FFFFFF (The most memory possible to allocate, but also impossible, 1 meg). After you call the interrupt, AX will contain an error code (no big deal, you don't care anyway, you expected it) and BX will contain the largest size (in paragraphs) of memory available. This function is usefull for finding how much memory is available for say, an Drop to dos (EXEC) function call for a program. If you want some source code, just get back to me, and I'll post a couple of examples. Jeff Bakke NU113738@NDSUVM1.Bitnet ' And life goes on '