Case insensitive string match?

I see that you first try to match the characters 'strictly' and when that fails you proceed with a case insensitive match.

I see that you first try to match the characters 'strictly' and when that fails you proceed with a case insensitive match. Andb $32, %al # this 'and' operation only leaves the $32 bit if it is # present in al, all other bits are set to 0 # al is now either 0 (for a lower case character) # or $32 (for an upper case character) xorb (%edx), %al # so this operation will become zero if the upper case # bit ($32) is set in the hardcoded password character What you instead need to do is something like this: xorb $32, %al # invert case of the character by toggling the upper case bit cmp (%edx), %al # try to match again je SkipCase Hope that helps, I find it really difficult to explain bit operations in a short post like this. :) Also, I presume this is either homework or some sort of excercise because a real password routine would have to be more clever - e.g. Only perform the case insensitive check for letters, never digits or other characters.

Thank you very much, this works perfectly, exactally what I was looking for. Yeah instead of it being a usable product its more for the sake of demonstrating the use of assembly. I wonder if I could be cheeky and ask you to have a quick look at this one also stackoverflow.Com/questions/8182165/att-assembly-masked-input which involves a problem I encountered between the difference between AT&T and intel assembly.

Thanks for the perfect reply. – TheoVate Dec 11 at 15:59 @TheoVate sorry that other question seems related to DOS syscalls which I don't know anything about – Martin Dec 14 at 16:16.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions