Look at this
Quote
mov ax,09
mov ax,9
mov ax,09h
is there any different?
If yes, what is the different...I am new to assembly...
The third line takes a hexadecimal value : 09h
Quote from: Vortex on December 12, 2009, 09:20:54 AM
The third line takes a hexadecimal value : 09h
Which happens to be identical to the decimal value 9 :wink
So this mean that the
mov ax,09
mov ax,9
is both the same.
mov ax,09h is different.(Decimal value 9)
Right ??? :wink
For all three forms the assembled instructions are the same:
0B67:0100 B80900 MOV AX,0009
0B67:0103 B80900 MOV AX,0009
0B67:0106 B80900 MOV AX,0009
The only differences I can see would be in the steps that the assembler goes through to convert the constant operand into a value.
Thanks you...You help me a lot...