Be prepared to show all Koksi related and other programming homeworks using a PC at the practice session. Please bring both a listing and on a diskette all the programs you made for this practice session. Alternatively to bringing the diskette, you can store your programs to the fs file server.
Write a short essey or report (10 to 30 lines long) about the memory references caused by the TTK-91 machine instructions. How many memory references can execution of any ttk-91 machine instructions cause? Which instruction causes the maximum numebr of references? Which causes the minimum? Please consider the whole instruction cycle. Which matters most here, the opcode, the addressing mode, or both? Why? Justify you answers in the text
Write your answer to a plain text file, which you must then send to the course assistant using the web-page http://db.cs.helsinki.fi/~tuohinie/tito/ .
The web-page asks first you to choose your small group. Then you have to write your name and upload the text file containing your report.
You have to return the answer at the latest 24 hours before the small group session's starting time. A late delivery is not possible.
Write a ttk-91 symbolic assembly language program that
Complete the program lh_arvop.k91
(in the Koksi example directory) by
implementing subroutine Simple(A, B, C), which prints the sum of its
three parameters. All parameters are value parameters.
Check your program by compiling and running it in Koksi. Please remember
to bring your solution (to all Koksi questions) also in
electronic form to the small group session.
Complete the program lh_kutsu.k91
(in the Koksi example directory) by
implementing subroutine SUBR(X, A, B), which modifies parameter X into
the difference of value parameters A and B. Parameter X is given as
call-by-reference parameter.
Check your program by compiling and running it in Koksi.
The address field of ttk-91 machine instruction has only 16 bits. This limits the size of constants used in instructions.
Ttk-91 does not have such data types. Could one make a MyLan compiler that would allow us to execute MyLan programs in ttk-91? If the answer is yes, why? If the answer is no, why not?