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
MyLocation SDWORD 14 TheTest        SDWORD 8     mov    eax,MyLocation     mov    ebx,TheTest     neg     eax,ebx     sub     eax,ebx Show exactly what lives in eax after executi

The Pentium   The next member of the Intel family of microprocessors was the Pentium, introduced in the year 1993. With the Pentium, Intel broke its custom of numeric model name

Write an assembly language program to find the maximum of: y = x 6 - 14x 2 + 56x for the range -2 ≤ x ≤ 4, by stepping one by one through the range. The program should in


what is the hex value in ax after executing the instructions ax= 1E8A bx=4080 add al,bl sub ah,bh

Write an assembly program that adds the elements in the odd indices of the following array. Use LOOP. What is the final value in the register?

CAN U GIVE BRIEF THEORY

Write Policy A write policy determines how the cache deals with a write cycle. The 2 common write policies areWrite-Throughand Write-Back. In Write-Back policy, the cache behav

INC: Increment : - This instruction increments the contents of the particular memory or register location by the value 1. All the condition code flags are affected except the carry

8088  Timing System Diagram The 8088 address/data  bus is divided  in 3 parts (a) the lower 8 address/data  bits, (b) the middle 8 address bits, and (c) the upper 4 status/