Let us suppose that we have 10 data’s which are stored from
memory address 9000H to 9009H. We find the smallest number from these data’s
and store the value in 9100H.
Algorithm:
- Start.
- Load into register pair HL from memory location 9000H.
- Move 09 into register C.
- Move the contents of memory M into accumulator A.
- Increment register pair HL by 1.