I saw movw %dx (%eax)
on my textbook, and I'm wondering why use movw
rather than movswl
or movzwl
here?
I think that there are 2 bytes in %dx
and 4 bytes in (%eax)
(for a 32-bit machine), so it needs an extension?
I saw movw %dx (%eax)
on my textbook, and I'm wondering why use movw
rather than movswl
or movzwl
here?
I think that there are 2 bytes in %dx
and 4 bytes in (%eax)
(for a 32-bit machine), so it needs an extension?