This assembly program reads in 8, 8-bit numbers and is able to calculate the min, max, and average of those numbers. The code has been optimized for speed, but if compact code is what you want, by all means use a looping structure. I should mention that this program is an introduction to assembly and runs on the 8085 simulator. I will however, be posting Verilog code that effectively creates the Intel 8085 and which, will also accept a precompiled hex file via RS232! That will be in a couple months however (time permitting). For now, enjoy your nice and easy Assembly example.
~ we do it with NAND gates