You are on page 1of 5

https://www.youtube.com/watch?

v=Qxxu6ZG4q1c
https://www.youtube.com/watch?v=L78a2pGLbEk(add 16 bit and store in 32)
https://www.youtube.com/watch?
To find largest/smalles t

v=06Ob6ZS5g_k

.1.Select address…..consider 3C add 4 40,add4 44…………….


2. compare 1st no(0x44444444)with 2nd no.therefore greater no is
0x44444444..store in ans r2(resultant reg)..

Compare 0x44444444 with0x1111111 therefore greater no is


0x4444444.store ans in r2.

Compare above ans with0x3333333.hence greater no is


0x44444444.store in r2

Compare answer with 0xAAAAAAAA.gtr no is 0Xaaaaaaaa.hence tore in


r2.

Compare 0Xaaaaaaa with0x888888. Hence gtr is 0Xaaaaaa

Compare oxaaaaaaaa with 0x9999999.hence gtr is 0xaaaaaaaaa.

Total input(n)=7

Comparision done for 6times i.e.,n-1=6

Therefore We need a counter of number 06.

Here we are incrementing address(3c,40,44…….)while comparing…


so,we need a counter

You might also like