1 # purpose: this program finds the maximum number of a set of data items.
3 # variables: the registers have the following uses:
4 # %edi - holds the index of the data item being examined
5 # %ebx - largest data item found
6 # %eax - current data item
8 # data_items - contains the item data. A 0 is used to terminate the data
12 .long 3, 64, 34, 37, 0
18 movl data_items
(,%edi
,4), %eax
25 movl data_items
(,%edi
, 4), %eax