What does it mean "nopw" in the assembly code?

40 Views Asked by At

I have a very simple code as below.

But there is one line that I cannot interpret.

pushq   %rbp
movq    %rsp, %rbp
leaq    (%rcx,%rdx), %rax
popq    %rbp
retq
nopw    (%rax,%rax)

Above assembly code is somewhat adding two integers like 1+1.

I can understand every line except the last.

I have learned that (%, %) means adding in assembly codes.

Does it still make sense to interpret that way in the last line?

0

There are 0 best solutions below