@prasanth I know this solution...Try giving with constraints
specified ...
only following operations are available...
SHR reg1, op1
ADD reg1, op1
AND reg1, op1
NOT reg1.
On Sep 17, 6:46 pm, prasanth n nprasnt...@gmail.com wrote:
let a and b be the two numbers
int temp,result;
temp=a-b;
@Sivaviknesh: I already answered in another thread, but it is short,
so here goes again.
AND A,0 // sets register A to zero
NOT A// complements the bits of A
The result is that register A is filled with 1-bits, giving MAXINT.
Dave
On Sep 17, 8:33 am, sivaviknesh s