flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Inline Assembly & C Question - Concerning Variables |
Author |
|
f0dder 27 Apr 2006, 15:31
Move to a decent compiler with decent inline assembly support - vc2003 toolkit is free
|
|||
27 Apr 2006, 15:31 |
|
Kermil 28 Apr 2006, 09:12
I work with inline assembler not long ago, but I think the following example help you:
#include <stdio.h> int main(void) { unsigned int result; __asm__ ("movl $783, %%eax" : "=a" (result));//move eax to result variable printf("Result: %d", result); return 0; } |
|||
28 Apr 2006, 09:12 |
|
Raedwulf 28 Apr 2006, 12:41
This could help! using intel syntax in GCC:
http://www.reversing.be/article.php?story=20051203194931893 _________________ Raedwulf |
|||
28 Apr 2006, 12:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.