The results of an exam are in this order: 72, 40, 94, 18, 80 and are in the data segment. You should write an assembly program which will determine the best result and will put it on location BEST in the same segment that should be defined after the array.
-8bits registers should be used when writting in memory
-one register should have the data of the element in the array with index 0 (BX)
-one register should have counter to 5 (CX)
-in one register (AL) should be put the biggest result and it should be compared with the other elements of the array

You need to supply source code for us to review and make recommendations for!

;Hint
mov bl,[bx]         ; Is one method for loading a single byte from memory
cmp bh,bl           ; Is one method for comparing two values

etc.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.