Program on virtual learning environment, Assembly Language

Assignment Help:

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.


Related Discussions:- Program on virtual learning environment

Into-jmp-unconditional branch instruction-microprocessor, INTO : Interrupt...

INTO : Interrupt on Overflow:- It is executed, when the overflow flag OF is set. The new contents of IP and CS register are taken from the address 0000:0000 as described in INT

Schematic circuit diagram of system, Perform an extensive web search of pop...

Perform an extensive web search of popular microcontroller manufacturers (some of the major players) to select a suitable device for the system to control the lighting of a typical

Program for generate mips assembly code that runable on spim, Project Overv...

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

Assembly HW help, I was wondering if you guys could offer me some advice an...

I was wondering if you guys could offer me some advice and help on how to proceed - not answers- for a homework problem I am attempting. I am currently working on a "bomb" project

Write a program to print name, Write a program to do the following: 1. P...

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

Write a program to find the average of the array , Write a program on the a...

Write a program on the assembly language to do the following: 1- Allocate array with 32bit 100 element 2- Prompt the user to enter the maximum or the upper bound of the rando

Data copy/transfer instructions-microprocessor, Data copy/transfer Instruct...

Data copy/transfer Instructions MOV: This data transfer instruction transfers data from one register or memory location to another register or memory location. The source can

Interrupt-microprocessor, Interrupt When the CPU detects an interrupt s...

Interrupt When the CPU detects an interrupt signal, it stops activity of current and jumps to a special routine, known an interrupt handler. This handler then detects why the i

8086 assembly language program, move a byte string ,16 bytes long from the ...

move a byte string ,16 bytes long from the offset 0200H to 0300H in the segment 7000H

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd