Home Page > > Details

Help With FPU Assignment, Python,Java Programming Assignment, c++ Assignment,program Course AssignmentHelp With Java Programming|Help With Processing

Homework 3 – Working with Procedures
Objectives:
This exercise aims give you some practice working with procedures, the FPU and parameter passing.
Description:
For this exercise you need to modify the basic arithmetic program you wrote for week’s 5 exercise.
The program needs to be modularized, and each task and operation should be implemented as a
separate procedure, which will be called by the main procedure. Two of the four procedures for the
mathematic operations should use the FPU for their operations. In addition, these procedures need to
be implemented using different parameter passing scheme, see requirements for additional details. The
numbers that the user need to provide should be in the range [1 – 10], and the second number should
be smaller than the first.
Requirements:
1. The main procedure should only be used to call other procedures.
2. The upper and lower limits should be declared as constants.
3. The addition procedure should use the FPU and parameters that are accessed as global
variables.
4. The subtraction procedure should use the CPU and parameters that are passed in using the
system stack.
5. The multiplication procedure should the CPU and parameters that are pass in the system stack
by reference, that is, instead of the pushing the value into the stack, the variable OFFSET should
be pushed.
6. The division procedure should use the FPU and use parameters that are stored in registers.
7. All procedures should be documented, and the addressing modes used in the procedure should
be identified in the documentation.
8. All the requirements for intro, outro, data validation exist.
What to submit:
1. A functional decomposition flow-chart of the program. Microsoft Visio is one software for flowcharts
2. The .asm file

Contact Us - Email:99515681@qq.com    WeChat:codinghelp
Programming Assignment Help!