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

Ret-unconditional branch instruction-microprocessor, RET : Return from the...

RET : Return from the Procedure:- At each CALL instruction, the register IP and register CS of the next instruction is pushed to stack, before the control is transferred to the

Xml, Write the structure of For…Next loop in VB.Net and also write a progra...

Write the structure of For…Next loop in VB.Net and also write a program to print integers from 1 to 10 on the console.

Aam-arithmetic instruction-microprocessor, AAM: ASCII Adjust for Multiplic...

AAM: ASCII Adjust for Multiplication after execution. This instruction converts the product available in the AL into unpacked BCD format.  This follows a multiplication   instruct

Arithmrtic operation exercise assempley HELP!, Open notepad and enter the c...

Open notepad and enter the code for a program that calculates the following arithmetic expression: x = a + b + c - d - e + f The operands a, b, c, d, e, f, and x should be declared

Formulate the linear programming model , Print Media Advertising (PMA) has ...

Print Media Advertising (PMA) has been providing a contract to market Buzz Cola via newspaper ads in a main southern newspaper. Full-page ads in the weekday editions (Monday throug

Aad-arithmetic instruction-microprocessor, AAD: ASCII Adjust for Division ...

AAD: ASCII Adjust for Division though the names of these 2 instructions (AAM and AAD) seem to be same, there is many difference between their functions. The AAD instruction conver

Assebmly code, You have to write a subroutine (assembly language code using...

You have to write a subroutine (assembly language code using NASM) for the following equation.

Architecture of file transfer, Explain the architecture of the file transfe...

Explain the architecture of the file transfer protocol ftp in terms of clients, servers, sockets

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