Assembly Programming



Download 3.56 Kb.
Date31.01.2017
Size3.56 Kb.
#13215
Sheet (5)

Assembly Programming


  1. Write a Little Man program that accepts three values as input and outputs them in order of size, largest to smallest.

  2. Write a Little Man program that accepts three values as input and produces the largest of the three as output.

  3. Write a Little Man program that prints out the even numbers from 1 to 99. No input is required.

  4. Write a Little Man program to accept an indefinite number of input values. The output value will be the largest of the input values. You should use the value 0 as a flag to indicate the end of input

  5. Write a Little Man program that adds a column of input values and produces the sum as output. The first input value will contain the number of values that follow as input to be added.

  6. Write code to implement the expression A = (B + C) x (D + E) on 3-, 2-, 1-, and 0-address machines. In accordance with programming language practice, computing the expression should not change the values of its operands.

  7. Write a program to evaluate the following arithmetic statement using a stack organized computer with zero-address instructions (so only pop and push can access memory).



Download 3.56 Kb.

Share with your friends:




The database is protected by copyright ©ininet.org 2024
send message

    Main page