TC编译程序的时候,有错误发现不出来!
代码如下:#include<stdio.h>
#include<dos.h>
main()
{
union REGS reg;
int n;
delay(50000);
while(1){
reg.h.ah=0;
int86(0x16,®,®);
keyin(0x00,0x6a);
keyout(0x00,0x6a);
}
}
int keyout()
{
int addressb,addresse,key,exikey;
addressb=peekb(0x40,0x1a);
addresse=peekb(0x40,0xlc);编译的时候这里显示有错误:expression syntax in funtion keyout
if(addressb!=addresse)
{
key=peekb(0x40,addressb);
exikey=peekb(0x40,addressb+1);
if(key==0)
key=exikey+0x10;
addressb=addressb+2;
if(addressb==0x3e)
addressb=0x1e;
pokeb(0x40,0x1a,addressb);
return(key);
}
else
return(0);
}
int keyin(int key,int exikey)
{
int addressb,addresse;
addresse=peekb(0x40,0x1c);
pokeb(0x40,addresse,key);
pokeb(0x40,addresse+1,exikey);
addresse=addresse+2;
if(addresse==0x3e)
addresse=0x1e;
pokeb(0x40,0x1c,addresse);
return;
}
请问有错么?到底该怎么改,拜托了!