Hello everyone..i have just started to take a ASM class and my teach is talking about using ADD,MOVL, LEAL...i have no idea what all that means..i know how the ASM reads the function arguments but i dont know how to use the ADD,MOVL,and LEAL calls appropriately....please advice on where i can get some begineer help..
thanks
thanks
I have never taken a class in ASM and would not even know what such a teacher would expect. Best to ask a classmate or the teacher for advise because teachers are so picky and want it done a certain way.
pardon the pun but if you can't get beginners help in a class where can you get it? :grin:
apart from that, the manual of your assembler, the intel manuals, etc...
apart from that, the manual of your assembler, the intel manuals, etc...
Are you coding for Intel x86? The opcodes look weird to me.
Maybe he uses AT&T syntax and not INTEL syntax.
I don't know AT&T but I know it's strange
I don't know AT&T but I know it's strange
iirc, movl is GAS (AT&T) syntax, I think it means move long (dword), I find GAS syntax horrible, but I guess it's an attempt to make it portable (movl moving a long) -- I prefer the intel syntax, IMO, less confusing and less code (not a lot of semi-cryptic movl, movw, pushl %eax, %ecx)
GAS syntax appears to be quite pouplar with some linux coders -- don't know why.
GAS syntax appears to be quite pouplar with some linux coders -- don't know why.