Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!genrad!grkermit!masscomp!clyde!akgua!psuvax!psuvm%cjs From: psuvm%cjs@psuvax.UUCP Newsgroups: net.micro.pc Subject: Does DOS function 48h work? Message-ID: <411@psuvm.UUCP> Date: Tue, 3-Jan-84 08:46:28 EST Article-I.D.: psuvm.411 Posted: Tue Jan 3 08:46:28 1984 Date-Received: Wed, 4-Jan-84 04:58:38 EST Lines: 19 Has anyone had success using DOS 2.0 function 48h to allocate memory (page D-43 of DOS 2.0 manual)? I've been using code like: mov bx,10h ;number of paragraphs mov ah,48h int 21h Pretty simple. Carry flag gets set to indicated an error, and AX contains the error code 8 -- which means not enough memory. I've been able to allocate only 3 paragraphs without error, and these were put way down in DOS. Shoot, I got a 640K machine, so there is pleanty of memory available. I'd like to allocate a large buffer (4k or more) dynamically. Don't want it taking space in my .COM files. Cannot find any information on how DOS allocates memory other than that one page in the manual. Any suggestions?