I don't understand the difference between MOV
and MOV ptr
.
For example, in this C
code:
unsigned char x, y;
x = 2;
the second line in assembly is:
`MOV x, 2`
but the second line of this C
code :
tabbyte[0] = 15
unsigned char tabbyte[4]
in assembly is :
MOV byte ptr tabbyte[0], 15
What's the difference between the two assembly instructions and when should each one be used ?