Assembly Language Exercises

CS26

Sept. 10, 1996

We'll start with a discussion of the homework assignment.

  1. Write an assembly language program corresponding to the C fragment:
    for (i = 0; i <= 100; ++i)
       a[i] = b[i] + c;
    

  2. Write an assembly language program corresponding to the C fragment:
    i = ;
    while (save[i] == k)
       i = i + j;
    

  3. Write an assembly language program to read characters from a keyboard (until encountering a '\n'), echo them to the display, and store them in the buffer inb.

  4. Write an assembly language program to multiply two numbers, without using multiplication.

  5. Write an assembly language program to sort n numbers.

  6. Sketch the assembly language code structure corresponding to the following C language program structures:



Thomas P. Kelliher
Tue Sep 10 07:17:15 EDT 1996
Tom Kelliher