Translate the instruction into machine code

Assignment Help Basic Computer Science
Reference no: EM13760014

1. Write an assembly language program to calculate the following sum for N single precision floating point numbers. Use assembly directives to initialize meaningful test data and use variable names within the code. Use a system call to print the result to the I/O window instead of writing the result to memory (this makes it easier to view). Submit a hard copy of your commented source file (.asm) and a screen shot of the

result. Compare the result with your hand calculated sum.

nΣ??=1 (???? - 82.0116)2

2. Translate the following instruction into machine code, replacing pseudo-code where necessary. Show all your work in binary, but report the machine code for each instruction in hexadecimal.
Array:            .double 100.198,-0.983,10000.5,0.00745,8
Constant:       .double 0.1
Result:           .double 0
ldc1               $f0,Constant
lwc1              $f2,100($t1)
sub.d             $f20,$f22,$f24
sdc1              $f0,Result

Show all work. And, as always, homework is to be single-sided and stapled.

Reference no: EM13760014

Previous Q& A

  Find out the discounting and compounding interest

1. What is the relationship between discounting and compounding interest? 2. What is the relationship between the present-value factor and the annuity present-value factor?

  Who knows how to make an erd for database

Who knows how to make an ERD for database

  Research wireless standard

Research the 802.11 wireless standards, select 3 implementations (802.11e, 802.11i, 802.11n, 802.11ac, etc.), and describe each of them in 1-2 paragraphs.

  Process of developing a mobile application

Assume you are a software developer or system analyst and you are in the process of developing a mobile application. Speculate how societal mores and social media impact the design of human-computer interaction in your mobile application developme..

  Discuss the police code of ethics

Discuss the police code of ethics as described by Westley. Take into account these questions:

  Write about selecting members of your dissertation committee

Write about Selecting Members of your Dissertation Committee. Your Dissertation committee has two primary responsibilities: One is to ensure that your Dissertation meets academic and scholarly standards.

  Partnership indicating that his share of the partnership

Spencer received a K-1 from a partnership indicating that his share of the partnership STCL is $200. Land was sold for $35,000. The land was received as a property settlement on January 10, 2001, when the land's FMV amounted to $30,000. His ex-wif..

  The evidence-based research

Identify your refined PICOT question.Using PubMed and the Cochrane collaboration database, do a systematic review of your clinical question

  Use of analytics and cloud technology within this company

Support the need for the use of analytics and cloud technology within this company. Create a workflow diagram to illustrate how analytics and cloud technology could align with the company's business processes

  Explain the outline of prospectus draft

Explain the Outline of Prospectus Draft. So far during Weeks 1-5 of this course, you have been drafting sections of your Prospectus.


Write a Review


Similar Q& A

  Why is it impossible to represent x exactly in 32-bit ieee

Why is it impossible to represent X exactly in 32-bit IEEE ?oating-point? (b) and (c) What are the two binary numbers closest to X that we *can* represent?

  Creating data encryption standard for ibm

Let us start off with once widely used Data Encryption Standard (DES) which was created by International Business Machines (IBM).

  Produce a diagram of a proposed network

Produce a diagram of a proposed network

  Determine whether the relation r on the set

Determine whether the relation R on the set of integers Z is reflexive,symmetric,antisymmetricand /or transitive? which of these relations is equivalence relations?which of these relations is partial ordering?

  Create a financial spreadsheet on a topic

Create a financial spreadsheet on a topic

  Determine maximum size of register file in instruction-set

You are designing simple 32-bit instruction-set architecture which requires to support 45 opcodes, three source operands and one destination operand. Determine the maximum size of register file that this architecture can use?

  Web application vulnerabilities

Web Application Vulnerabilities

  Prompt the user to enter a string

Prompt the user to enter a string, and using a loop, count and output the number of vowels, and consonants the string contains. (find methods from class Character to help you.)

  How can laser be tipped before light no longer continues

If a laser is to be pointed into the end of the fibre, but is "tipped" to one side by θ degrees, how much can the laser be "tipped" before the light no longer continues down the fibre?

  Bolstering network security by using group policy

Bolstering Network Security by Using Group Policy and Configuring GPO Security Settings

  Solve for the optimal investment decision

Solve for the optimal investment decision by constructing a decision tree.

  How much ethyl acetate is produced

Write a matlab program that calculates how much ethyl acetate (Z g/L) is produced in g/L starting from X g/L of ethanol and 5 g/L of acetic acid.   Your program should produce a plot of Z vs X.

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