Mail Archives: djgpp/1996/01/13/18:55:00
I receive the following error......
" GNU C++ Compile: BASM3.cpp
BASM3.cpp: In function `int main()':
BASM3.cpp:10: parse error before `{' "
...when compiling the following program BASM.CPP...
#include <stdio.h>
#define COUNT 55
void ShowCount( int cnt )
{
printf("The count is %d!\n", cnt );
}
int main( void )
{
asm
{
mov ax, COUNT
push ax
#if defined(__TINY__) || defined(__SMALL__) || defined(__medium__)
call near ptr ShowCount
#else
call far ptr ShowCount
#endif
pop cx
}
RETURN 0;
}
WHY???? Thanks in advance.
"In Him was life, and His life is the light of men
He came unto His own but His own received Him not
but He gave power to as many as would receive Him
to become the sons of God!"
Peter Plum
RR1 Site10 Box 10
Grande Prairie. AB
T8V 2Z8
403 538 4713
- Raw text -