Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site voder.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!harvard!talcott!panda!genrad!decvax!tektronix!hplabs!nsc!voder!dan From: dan@voder.UUCP (Dan Lai) Newsgroups: net.micro.pc Subject: Dynamic Allocation Message-ID: <835@voder.UUCP> Date: Tue, 6-Aug-85 20:30:36 EDT Article-I.D.: voder.835 Posted: Tue Aug 6 20:30:36 1985 Date-Received: Mon, 12-Aug-85 22:26:40 EDT Distribution: net Organization: National Semiconductor, Santa Clara Lines: 49 Here is a small lattice C program calling an asm routine on an IBM PC. Why is it that the program does not wait for keyboard input ? ********************************************* #includechar buffer[256]; main() { int one; memget(); printf("enter: "); scanf("%d", &one); printf("%d\n", one); fgets (buffer, 256, stdin); printf ("<%s>", buffer); fgets (buffer, 256, stdin); printf ("<%s>", buffer); } ********************************************* include dos.mac pseg public memget memget proc near mov bx,0400h mov ax,4800h int 21h ret memget endp endps end ********************************************* Dan Lai ...!{ucbvax, ihnp4!nsc, decwrl!nsc}!voder!dan National Semiconductor (408)721-3641 -- Dan Lai ...!{ucbvax, ihnp4!nsc, decwrl!nsc}!voder!dan