blinksumgreen
March 15th, 2009, 02:09 AM
I am dealing with unsigned numbers and I have done checks in my code to insure that the number entered into eax is not above 255. What I would like to do is take what is in eax and put it into dl. I thought that
mov dl, al
would do the trick, but it isn't working. When I scroll over al while in debug mode it shows the number that I want to be there, plus ' ' (quote tags) with a box inside them.
I have to do this for the assignment so there is no option of just not using dl.
Is there any way to take the first 8 bits of a 32-bit register and place them in dl?
mov dl, al
would do the trick, but it isn't working. When I scroll over al while in debug mode it shows the number that I want to be there, plus ' ' (quote tags) with a box inside them.
I have to do this for the assignment so there is no option of just not using dl.
Is there any way to take the first 8 bits of a 32-bit register and place them in dl?