showed an exact intel syntax which is super easy to use and no more %0,%%eax crap
here is the small code snipplet that demonstrated it
Code: Select all
static int VarD = 0x27439AB;
static int VarB = 19;
static int VarA = 8;
static int VarC = -56;
int main() {
__asm (
".intel_syntax noprefix\n" //this tells it to go intel
"mov EAX,[VarA]\n"
"add EAX,[VarB]\n"
"mov [VarC],EAX\n"
".att_syntax \n" //remember that the compiler still uses att syntax so this should be at the end everytime
);
VarC = VarA + VarB;
return 0;
}
which i thought was all no until now.