Mail Archives: djgpp/1997/06/29/08:32:54
Two problems:
First if I compile and run a simple program:
void main(void)
{
printf("Hello world");
getch();
}
The computer waits for me to press a key, then prints "Hello world",
then ends. The compiler esentially switches the two function calls.
This also happens if I place two getch()s after the printf() statement,
except it waits for two key presses before printing "Hello world."
Am I doing something very wrong? Is this a known problem with the
compiler? Or is this something wrong with my copy?
Second, is there a way to use the Intel ASM command 'shl eax,16' in AT&T
syntax?
Any help would be appreciated.
Justin Talbot
- Raw text -