;This program finds the largest word in an array 
;The array is exactly 50 (dec) words long
; Output: Max in DX
mov si, 0 ;offset within the array
mov dx, 0 ;min value
around: cmp dx, nums [si] ;new max??
jae nxtwrd
mov dx, nums [si] ;record new max
nxtwrd: add si, 2 ;point to next word in memory
cmp si, 50*2 ;end of array?
jb around
int 20h nums dw 50 dup (?)