uses of registers
Posted: Fri Sep 28, 2007 3:24 pm
well, i am doing a procedure that converts an X and Y variables to a selector:
mov ah, [Y]
mov al, 160
mul ah
I know the result is the same, but usually, the ax is used with dx to make arithmetical operations (for historical reasons, i read).
What is the correct way of writing the code to make a multiplication?
if i have to use dx , i use dh, or dl???
I know this is a little stupid, but it's helpful to make my code more readable...
thanks
mov ah, [Y]
mov al, 160
mul ah
I know the result is the same, but usually, the ax is used with dx to make arithmetical operations (for historical reasons, i read).
What is the correct way of writing the code to make a multiplication?
if i have to use dx , i use dh, or dl???
I know this is a little stupid, but it's helpful to make my code more readable...
thanks