I am learning assembly or I should say HLA's version of ASM
and I am learning TRUE asm with that.
I am not sure for the syntax of inline asm, but everyway I look at it this should work...
could someone tell me why it doesn't work?Code:#include <iostream.h> int main() { int x; __asm{ mov 0, eax add 2, eax mov eax, x } cout<<x<<endl; return 0; }