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..

Posted on 2003-11-02 16:33:32 by kemp100
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.
Posted on 2003-11-02 17:07:10 by bitRAKE
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...
Posted on 2003-11-02 18:15:31 by Hiroshimator
Are you coding for Intel x86? The opcodes look weird to me.
Posted on 2003-11-02 21:28:53 by roticv
Maybe he uses AT&T syntax and not INTEL syntax.
I don't know AT&T but I know it's strange
Posted on 2003-11-03 02:18:28 by greenant
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.
Posted on 2003-11-03 11:07:33 by scientica