Find the largest of given numbers
Statement: Find the largest number in a block of data. The length of the block is in memory location 2200H and the block itself starts from memory location 2201H.Store the maximum number in memory location 2300H. Assume that the numbers in the block are all 8 bit unsigned binary numbers.
(2200H) = 04
(2201H) = 34H
(2202H) = A9H
(2203H) = 78H
(2204H) =56H
Result = (2202H) = A9H
Source program :
|
0 Comments