在纯DOS的TC中嵌入汇编为什么不行,这是我写的程序
#include "dos.h"#include "bios.h"
#include "alloc.h"
#include "stdio.h"
#include "process.h"
main()
{ int i,j,c1;
char *s;
scanf("%d",&i);
asm mov ax, i;
asm mov cl, 2;
asm mul cl;
asm mov j, ax;
printf("result %d*2=%d\n",i,j);
getch();
}
显示错误是In-line assembly not allowed in function main
而这段程序在win-tc下就可以运行呀