assembly MOV instruction operands

Viewed 391

when we want to make an initialized variable like this:

name db 'zara ali'

we have made a byte size variable but we stored a string in it

how it is possible??

and when we use this instruction:

MOV ecx, name

we have stored a byte sized variable in a 4 byte size register, while in MOV instruction both operands must be of same size. how it's possible??

1 Answers
Related