What exactly does this instruction do?
movzbl 0x01(%eax,%ecx), %eax
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
AT&T syntax splits the
movzxIntel instruction mnemonic into different mnemonics for different source sizes (movzbvs.movzw). In Intel syntax, it’s:i.e. load a byte from memory at eax+ecx+1 and zero-extend to full register.
BTW, most GNU tools now have a switch or a config option to prefer Intel syntax. (Such as
objdump -Mintelorgcc -S -masm=intel, although the latter affects the syntax used when compiling inline-asm). I would certainly recommend to look into it, if you don’t do AT&T assembly for living. See also the x86 tag wiki for more docs and guides.