CIS 351

Assembly Loops

Winter 2021

  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 Monday, 22 March 2021, 8:38 AM

W3c Validation