Joined: 30 Jun 2004
Location: The Portland Group Inc.
|Posted: Thu Oct 27, 2005 6:54 pm Post subject:
In basic asm statements, you can only use global C variables. Also, 'dec' only works with registers. Example:
printf("Before %d\n", y1);
__asm("mov y1, %eax");
__asm("mov %eax, y1");
printf("After %d\n", y1);
Note that we will support extened asm in our next major release (6.1) which will allow you do more advanced assembly coding, such as using local variables. For now, however we're stuck with basic asm.