Assembly Language Exercises
CS26
Sept. 10, 1996
We'll start with a discussion of the homework assignment.
-
Write an assembly language program corresponding to the C fragment:
for (i = 0; i <= 100; ++i)
a[i] = b[i] + c;
-
Write an assembly language program corresponding to the C fragment:
i = ;
while (save[i] == k)
i = i + j;
-
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.
-
Write an assembly language program to multiply two numbers, without
using multiplication.
-
Write an assembly language program to sort n numbers.
-
Sketch the assembly language code structure corresponding to the following
C language program structures:
- while
- if
- if/else
- if/else if/else
- for
- switch
Thomas P. Kelliher
Tue Sep 10 07:17:15 EDT 1996
Tom Kelliher