Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!ima!johnl From: johnl@ima.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: Funtion 4BH of interruption 21H Message-ID: <470@ima.UUCP> Date: Sat, 31-Jan-87 16:20:15 EST Article-I.D.: ima.470 Posted: Sat Jan 31 16:20:15 1987 Date-Received: Sat, 31-Jan-87 23:56:15 EST References: <1379@imag.UUCP> Reply-To: johnl@ima.UUCP (John R. Levine) Distribution: world Organization: Javelin Software Corporation Lines: 20 In article <1379@imag.UUCP> serge@imag.UUCP (Serge ROUVEYROL de la ROUVETIERE) writes: >We have got a problem with the function 4BH of interruption 21H (load only) > >We don't understand : > -if the PSP is created or not ? [It's not] > -if we must allocate the memory ourselves or if the INT 21H do it for us You allocate it yourself. > -How to calculate the start segment ? > Is it the segment address obtained by memory allocation? It does not tell you where the start address is; you'd have to read the .EXE file yourself. The "load only" function does just that, it loads the file you specify into a section of your memory. It is intended for loading overlays. I wouldn't use it -- many versions of DOS 2.X do not implement it correctly and smash the calling program instead. -- John R. Levine, Javelin Software Corp., Cambridge MA +1 617 494 1400 { ihnp4 | decvax | cbosgd | harvard | yale }!ima!johnl, Levine@YALE.something Where is Richard Nixon now that we need him?