首页 > > 详细

代做FPU留学生作业、代写Python,Java编程设计作业、代写c++语言作业、program课程作业代做帮做Java程序|代做留学生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

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp
热点文章
程序代写更多图片

联系我们 - QQ: 99515681 微信:codinghelp
© 2014 www.7daixie.com
程序代写网!