dan@voder.UUCP (Dan Lai) (08/07/85)
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 ?
*********************************************
#include <stdio.h>
char 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