Byte separator for MOV command in assembly (masm) -


what if in mov command want write bytes separate numbers, 1 each byte, instead of 1 single number? separator use between bytes?

also, byte separator can used in macro calls, comma occupied parameter separator?

as example, following looking for, if ; used separator:

mov ax, 25h;'d' 

in above example, first byte written hexadecimal number, second 1 written string.

mov edx, 25h;'a';254;'l' 

in above example, first byte written hexadecimal number, second , fourth 1 string, , third hexadecimal number.

you don't need separator between bytes. write both numbers (byte) in hexadecimal form.

first number 23 = 17h
second number 51 = 33h

then use single mov use both bytes together:

mov ax, 3317h 

edit

change

mov edx, 25h;'a';254;'l' 

into

mov edx, 25h + ('a' << 8) + (254 << 16) + ('l' << 24) 

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -