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.
.data
Array:            .double 100.198,-0.983,10000.5,0.00745,8
Constant:       .double 0.1
Result:           .double 0
.text
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

Questions Cloud

Wan acceleration protocol-internet protocol : The maximum size of the Layer 2 frame has become a source of inefficiency in terms of modern wide area network (WAN) speeds, which have increased some 400 times over those prevailing when Transmission Control Protocol/Internet Protocol (TCP/IP) wa..
Dna to solve crimes : Physical evidence would be retrieved from the crime scene
Create a new android application project : Create a new Android Application Project and The recipe application should have a tile or visual shortcut placed in the application list
Clearly define the firmer research plan and design : clearly define the firmer research plan and design. The purpose statement defines whether the study will be of value: What information is needed? How likely is this information to influence decisions?
Translate the instruction into machine code : 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.
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..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Calculate the reliability of a hard disk drive

Calculate the reliability of a hard disk drive with an MTBF of 2,499 hours during the last 40 hours of this month. Assume e = 2.71828 and use the formula: reliability(t) = e -(1/MTBF)(t)

  Create the data flow diagrams needed

The Chocolate Delights Candy Company needs to add the following functionality to its cash register: When a customer is checking out, the cash register needs to store the required data pertaining to each item the customer is buying.

  A current business problem or area for improvement

A current business problem or area for improvement.

  Convert decimal mumbers into bit binary number

Convert the following decimal mumbers into 8-bit binary numbers a required for 2's complement math, and perform the indicated operations.

  How many different seven-digit phone numbers can be formed

How many different seven-digit phone numbers (ignoring area code) can be formed? Can city of 2 million people be served by single area code? Describe.

  Prepare gui to create object-s processing methods

Create the object-oriented design for system which maintains tracks of your CD and DVD collection. Prepare GUI which will create objects and give access to each object's processing methods.

  What is the output of the following loop

What is the output of the following loop

  Create a new jmenu with the name look and feel

Let's start with the createLookAndFeel() method. This will create the first submenu shown in figure 1. There are three items on this menu, Metal, Motif, and Windows.

  Explain how is a dsl interconnection distinct from the

q1.what are the basic principles that apply to all networks?q2.what is an ethernet card?q3.what does a network switch

  Continuously prompts the user for a number

Create the logic for a program that continuously prompts the user for a number of dollars until the user enters 0. Pass each entered amount to a conversion method that displays a breakdown of the passed amount into the fewest bills

  Write a program that places the names in an array

The USPres.txt contains the names of the 44 U.S. presidents in the order in which they served. write a program that places the names in an array and displays all presidents for a requested range of numbers.

  Prepare a plan for implementing hyper-v

Specify the most significant advantages and disadvantages that could be realized by the organization in adopting a server virtualization infrastructure.

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