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

  The database specification

The database specification

  Partner server to have dfs namespaces with the same name

In Exercise 3.1, explain why it is not a problem for your server and your partner server to have DFS namespaces with the same name (Data).

  Implement the stack and queue with a single class

Implement the stack and queue with a single class interfaces with a unique class that is derived from class LinkedDeque. i asked this question before. Please do not copy the answer. thanks

  How do you draw a lewis structure for each of these compound

How do you draw a Lewis structure for each of these compounds

  Why is counter initialization important

Why is counter initialization important?

  Each of the conditional jump statements causes a jump to des

Assume for each part of this problem that the EAX register contains 00 00 00 4F and the doubleword referenced by value contains FF FF FF 38.

  When do you think it would be necessary use syntactic salt

When do you think it would be necessary to use syntactic salt

  Write a program which declares an array of 51 integers

Then print the median number. Be sure not to write more than 51 prime numbers in the array, that would be writing past the end of the array and that is not good.(c++) Please solve in a c++ method.

  Lists and arrays can be valuable tools

Lists and arrays can be valuable tools

  How many pages are needed to store the entire job

How many pages are needed to store the entire job?

  Given two variables is_empty which is associated with a bool

Given two variables is_empty which is associated with a bool

  Integer value from 1 to20 along with as squared value

Write an application that displays every integer value from 1 to20 along with as squared value

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