Learning Assembly language with Nasm I've just found that when I want to put immediate data to a memory location I can specify the size with either one of the operands, or with both of them. Example:
mov [num_i], word 0x5678
mov word [num_i], 0x5678
mov word [num_i], word 0x5678
And all of them generate the same thing (viewing in GDB):
mov WORD PTR ds:0x80490e0,0x5678
Is there any difference between these three variants? Which way is the standard?