News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Can Someone help me on this...

Started by Warlock, December 12, 2009, 09:17:43 AM

Previous topic - Next topic

Warlock

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...

Vortex

The third line takes a hexadecimal value : 09h

jj2007

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

Warlock

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

MichaelW

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.
eschew obfuscation

Warlock

#5
Thanks you...You help me a lot...