Task

Create a function that returns the maximum value in a provided set of values,

where the number of values may not be known until run-time.




 
#include <hopper.h>
main:
  lst=0
  max=0
  file="datos.txt"
 
  {","}             toksep
  {file}            statsfile
  {file}            load
                    mov        (lst)
  {0}               reshape    (lst)
  {lst}             array      (SORT)
  [end]             get        (lst)
                    mov        (max)
  {"Maximo = "}
  {max}
  {"\n"}            print
exit(0)
 