Posted by MrE on 1/18/2000, 12:08 am
, in reply to "Re: Task2 my solution"
128.109.131.47
You solution is nice and easy. But my will work too since we need to set al not the entire eax.
call ComparationRout
pop ecx
test al, al ; al - not eax
jz short loc_0_446E6FMy aim was to make CompareRoutine to return 1. So I focused on 2 instructions: setz al and and eax, 1. We can make setz setnz but this won't allow for valid serials. But after setz al - al can be either 0 or 1. So if we set the least bit to 1 it will always be 1. That was my point, but your solution is more elegant.
Thanks, MrE