Assembly Language

Practical Two

due date : 4pm 5 March 1996

Write programs to input variables X, Y (and Z if necessary) and perform the following calculations:

Exercise 1 : X^4 + Y^4

Exercise 2 : ((Z+1) MOD (Y+1)) DIV X

Exercise 3 : 32X + 32(YZ+1)

Output the results of the calculation. Use IOASM for input and output procedures.

Try out various values and submit output to prove that your mini-calculators really work !

Submit the source files, executable files and output screen dumps for the all three questions.

Read the notes for details on these programs.

NB: You ought to be submitting nine files for this practical - 3 for each question.