Assembly language addw vs addw vs

0

What does the suffix refer to? The size of the source value, the size of the destination?

What would happen if you did:

  1. addw (%r8) %rax. Would it add one byte, two bytes, three bytes? Interpreted as signed or unsigned?
  2. Say $eax = 0x0000FFFF. What would the result be after addw $1 %ax? Would eax be 0x00000000 or 0x00010000?
assembly
x86-64
att
asked on Stack Overflow Jan 4, 2020 by Edward Garemo • edited Jan 4, 2020 by Peter Cordes

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0