I am a student studying computer systems for the first time (w/ Computer Systems: A Programmer's Perspective). We are working on assembly and I am starting to understand command suffixes for x86_64 such as using leaq
in something like:
leaq (%rsp, %rdx), %rax
However, I am failing to understand using a suffix for pop
. For example, using the same logic, it would make sense to me that we'd use popl
for something like:
popl %edi
But, in the text and other examples online, I just see:
pop %edi
What is the difference? is popl
even valid? Just looking for a little more insight. Anything helps, thank you.