Program on virtual learning environment, Assembly Language

Task One

Produce a menu such as the one below (remember to keep to this specification).

M E N U

1, Enter Number 1

2, Enter Number 2

3, Display num1 and num2

4, Display sum of num1 and num2

5, Display product of num1 and num2

6, Divide num 1 by num 2

7, Exchange numbers 1 and 2

8, Display Numbers between num 1 and num 2

9, Sum numbers between num1 and num2

10, Raise num 1 to the power of num2

11, Display prime numbers between num1 and num2

12, Quit

Choose an Option:

Task Two - Input and Output

The first two options allow the user to enter two integer numbers (num1 and num2) that should be stored by the program. The third option should print the numbers previously entered.

 Task Three - Arithmetic

Options 3,4,5 and 6 should display the results of adding, multiplying, and dividing num1 and num2.

Division should display both the quotient and the remainder.

Assignment- MIPS Assembler

6G4Z1002 Computer Systems Fundamentals, 2011/2012

Task Four - Exchange

Option 7 should exchange the values of num1 and num2.

Task Five - Ranges

The eighth option should display all the numbers between num1 and num2 inclusive.

The ninth option should display the sum of all the numbers between num1 and num2 inclusive

Task Six - Power

Option 10 will raise one num1 to the power of num2 (num1num2 ) and display the result.

Task Seven - Primes

Option 11 will display only the prime numbers between num1 and num2.

Handing-In

You are required to submit your assignment via the Virtual Learning Environment. The program should include your name, and ID number as comments at the beginning of your program. The program should be named using the following pattern id.asm e.g. 55991231.asm.

Posted Date: 3/18/2013 1:52:09 AM | Location : United States







Related Discussions:- Program on virtual learning environment, Assignment Help, Ask Question on Program on virtual learning environment, Get Answer, Expert's Help, Program on virtual learning environment Discussions

Write discussion on Program on virtual learning environment
Your posts are moderated
Related Questions
Write a program to merge two sorted arrays to create a third sorted array containing all values from the two original arrays. Merge is a key component to the mergesort algorithm.

Write a nonrecursive version of the Factorial procedure (Section 8.3.2) that uses a loop. (A VideoNote for this exercise is posted on the Web site.) Write a short program that inte

The 486 Introduced in the year 1989 the 80486 did not feature any radically new processor technology. Instead, it joints a 386 processor, a cache memory controller and a math c

LENGTH : Byte Length of a Label: This directive is not available in MASM. This is used to mention to the length of a data array or a string. MOV CX. LENGTH ARRAY This sta

Write a program to do the following: 1. Print your name 2. Using a bottom testing loop, prompt the user to enter a number from 1 to 5.  If the number entered is not 1..5, pri

Project Overview In this series of projects you will write a compiler for a small subset of Pascal.  In this assignment, you will start writing the syntax analysis and code gen

Internal Architecture of Microprocessor : The architecture of 8086 provides a number of improvements over 8085 architecture. It supports a, a set of 16-bit registers ,16-bit AL

SUB: Subtract :- The subtract instruction subtracts the source operand from destination operand and result is left in the destination operand. Source operand might be memory locati

Register Organization of 8086 8086  has  a great  set  of registers  containing  special  purpose and general  purpose  registers.  All the 8086 resisters are 16-bit registers.

The modes are determined by the contents of the control register, whose format is given in Figure These modes are: Mode 0: If a group is in mode 0, it is divided into 2 sets.