hello everyone im currently trying to learn some assembly.....i coded a program in c++ and have opened it in ollydbg to try and follow the programs flow of exection...

1.) first off as i go thru the program i see statements like    AND EBX,EBX <----why would u do such a thing lol?
    ANDING EBX WITH EBX RESULTS IN EBX

Posted on 2010-02-13 11:09:53 by maybnxtseasn
And also sets the S, P and Z flags according to the result (ebx, in this case), right? ^^
Posted on 2010-02-13 11:21:11 by ti_mo_n
AND
"This instruction will clear the O-FLAG and the C-Flag and can set the Z-Flag"

is clear as in setting to 0?
Posted on 2010-02-13 11:42:46 by maybnxtseasn
Yes.
Posted on 2010-02-13 17:30:18 by Homer