0
adam2009's Avatar, Join Date: Jul 2009
Light Poster
Quote:
Originally Posted by adam2009 View Post
thanks.

one last question:
do you know a good debugger with which i can see that data un a given memory address as well ?

another final q:
Write 80X86 instructions to get a value of 1 in the ax register on an 80X86:

1. List 5 different ways to do this with ONE instruction.


i have found only 4

mov ax, 1
mov eax,1
div ax
idiv ax

??
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
I don't know - anyone else got any ideas?
Won't div ax throw an exception if ax=0? Ideally ax/ax should always equal 1, but 0/0 is mathematically undefined.
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
What about lea - is there a variant of that which will have the desired effect?