69,370
社区成员
发帖
与我相关
我的任务
分享
void getimage256(x1,y1,x2,y2,image)
short x1,y1,x2,y2;
char-huge *image;
{
char-far*buf,-huge *q;
long u;
short m,n,i,j,block;
m=abs(x2-x1)+1;
n=abs(y2-y1)+1;
(short)*image=m; //编译到这里 TC报错 说“Lvalue required in function getimage256” 下面那句也是这个错误
(short)*(image+2)=n;
void getimage256(x1,y1,x2,y2,image)
short x1,y1,x2,y2;
char huge *image;
{
char far *buf,huge *q;
long u;
short m,n,i,j,block;
m=abs(x2-x1)+1;
n=abs(y2-y1)+1;
*image = m;
*(image+2) = n;
q=image+4;
u=min(x1,x2);
u+=min(y1,y2) * 640l;
block=(short)(u/65536l);
u-=block*65536l;
fp_seg(buf)=0xa000; //运行到这里的时候又出现同样的错误
fp_off(buf)=u;