|
From: Richard <ri...@cc...> - 2001-07-30 20:11:12
|
Hi all. I need some help. I have some c source that I wish to compile, =
however I always get a compile error "parse error before '{' " and then =
for the next few lines " nondigits in number and not hexadecimal". The =
code which gives this error is as follows:
void clearscreen() {
__asm {
mov ax,0f00h
int 010h
mov ah,0
int 010h
}
}
Then further on in the program I also get "pares error before 'far' " =
for the following:
word portaddr(int n) { // base address of port LPTn
return(*(word far *)(0x00000408+2*n-2));
}
I can give the source to anyone who would like to examine it, if it =
would help.
Thanks,
Richard
|