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

  Create a portable forensic evidence kit

Create a portable forensic evidence kit for corporate security investigations.

  Which of these conditions returns true

Which of these conditions returns true? Check the Java documentation for the inheritance patterns.

  What planning methods would you use to develop business

What planning methods would you use to develop business

  Create a short email message on the importance of a college

Email the message to your instructor using the email address provided by them and carbon copy an alternate email address (you can use your own address).

  What is the importance of cookies on security

What is the importance of cookies on security, page lifecycle management, and usability?

  Write a function that calculates the stated value

Write a Function that calculates the stated value with a For Each loop (array nums contains a list of positive integers).

  File format would you choose

What file format would you choose for the following tasks: 1. A cartoon strip 2. A 3D model for use on a multimedia presentation on the web

  Write a program to fetch state and marital status of 5 users

Write a program to fetch state and marital status of 5 users.

  create a version of a carnival game

assignment, your job is to create a version of a carnival game in which mechanical dogs race along a track. The racing game is called DogTrack. DogTrack is also the name of the java source file you must submit to complete the assignment. The DogTrack..

  Design an application to take and process a pizza order

Design an application to take and process a pizza order. The user should be able to make pizza order choices from listboxes, and the application should display the order price.

  Vb script

Your company is currently planning to automate many different system administration tasks. Your manager has asked you to research a system administration task and implement it using VBScript. In addition, your manager would like to see both a proposa..

  Floating point format has an n-bit frac field

Suppose a floating point format has an n-bit frac field and a k bit exp field. What is the smallest integer that can be represented exactly? Assume that k is large enough not to provide any limitations on the problem. What is the integer for IEEE-754..

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