This is probably a dumb question came to my mind, but I think I don’t have answer to this –
How processor would find if A < B? In fact there are other things as well like A>B or A==B.
But if we solve A
I understand that different processors may probably have different implementations but I wanted to have some high level idea of doing this.
Some trick with bitwise operators should do it, I believe.
Any help would be greatly appreciated.
Subtract
BfromAand see if theN(negative) flag or the MSb of the result is set.