I have the following mov instruction (without the suffix) from a disassembler.
mov %dx,(%eax)
What would be the instruction suffix? First I thought that the destination register determines the suffix, however according to the book I'm reading, I guess it's determined by the "smallest" register. So in this case would be
movw %dx, (%eax)
since %dx (16-bit word register) is the smallest one. Is my reasoning correct? (Sometimes the CSAPP book is a little bit confusing, doesn't explain details clearly).