.WHILE
.WHILE condition statements .ENDW
INCLUDE Irvine32.inc .data array WORD 50, 70, 20, 10, 80 prompt1 BYTE "Minimum is ", 0 prompt2 BYTE "Maximum is ", 0 .code main PROC mov esi, OFFSET array mov ecx, LENGTHOF array - 1 movzx eax, WORD PTR [esi] ; EAX: minimum movzx ebx, WORD PTR [esi] ; EBX: maximum .WHILE ( ecx > 0 ) add esi, 2