previous | start | next

move instructions

The move instructions move data from a source S, to a destination address D:

 mov S,D
   

How many bytes are moved? It depends on which move instruction.

How do you assign a char to an int? an unsigned char to an int? Which move instruction?

Instruction Effect
movb move byte
movw move word (2 bytes)
movl move double word (4 bytes)
movsbw move byte to word, sign extend
movsbl move byte to double word, sign extend
movswl move word to double word, sign extend
movzbw move byte to word, zero extend
movzbl move byte to double word, zero extend
movzwl move word to double word, zero extend


previous | start | next