CIS 351

Assembly Loops

Winter 2022

  1. Write an assembly function sumArray(int[] array, int num_items) that returns the sum of all the items in array.
  2. Write an assembly function cotains(int item, int[] array, int num_items) that returns true if array contains item.
  3. Write an assembly funciton upcase(byte[] string) that converts all the lower-case elements in string to upper-case. Assume that the string is null-terminated. Below are some helpful ASCII values:
    A65
    z90
    a97
    z122

Updated Tuesday, 8 February 2022, 2:57 PM

W3c Validation