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
Post a Comment