Examine the assembler listing for your program

Assignment Help Basic Computer Science
Reference no: EM13985695

This routine must be written in Assembly language (not C or C++ or other language) It must have a *asm file that will run the program. I dont need a C++ version of this. Please just a assembly file that run in EBE program x86-64.

Assignment:

The purpose of this lab is to familiarize yourself with IEEE 754 floating point (FP for the rest of this lab) operations as well as the internal representation of the information in the machine.

By this point, you will be expected to all of your work in assembler. However, if you find yourself still having difficulty, you may implement the algorithm(s) you choose to address the items below in the high level language of your choice (e.g., ANSI C++ with the STL),

examine the assembler listing for your program, and then manually write an assembler

program based upon this output.

To document that you have done the requisite work, you will need to use the script utility as well as taking screen shots (as JPEG files) of those utilities that are GUI only (such as the GUI portions of ddd or ebe).

We will consider the following values as decimal numbers, where := is the assignment

operator (the = symbol in C++).

SA := 500.312 as single precision FP.

DA: = 500.312 as double precision FP.

SPI := the value of p as single precision FP.

DPI := the value of p as double precision FP.

SB := 1.456 x 106 as single precision FP.

DB := 1.456 x 106 as double precision FP.

1, Write a routine that will display each of these numbers as hexadecimal digits using the internal representation of FP on the machine.

2. Write a routine that will compute the product of SA and SB and store the result in a new variable named SC, and then display SC as in item 1.

3. Write a routine that will extract just the internal FP representation of the exponent of SB and DB and then, first, display the result as a 2s complement integer in base binary (so that the number will be converted from excess to complement form), and second, display the same number as base decimal (question: do you get 5, 6, or 7 for the result ­­ why?

Reference no: EM13985695

Questions Cloud

Determine the gross income of the beneficiaries : Ben's employer was downsizing and offered employees an amount equal to one year's salary if the employee would voluntarily retire.
Shift of aggregate supply leftward shift of aggregate supply : Economic growth would be illustrated by select one d a rightward shift of aggregate demand a leftward shift of aggregate demand a rightward shift of aggregate supply a leftward shift of aggregate supply
The introduction of a stylish line of toyotas : The introduction of a stylish line of Toyotas makes some consumers prefer foreign cars over domestic cars.
Probability calculation involving random events : Probability calculation Involving Random Events These calculations involve the use of the empirical rule since all elements available for selection have the same chance of being chosen. Quantify the events, the Event to be calculated and he sample sp..
Examine the assembler listing for your program : By this point, you will be expected to all of your work in assembler. However, if you find yourself still having difficulty, you may implement the algorithm(s) you choose to address the items below in the high level language of your choice (e.g., ..
Firm in truely competitive mkt discovers : A firm in a truely competitive mkt discovers that the price of its product is above its minimum AVC point but everywhere below its ATC. Then the firm: A) minimizes losses by producing at the minimum point of its AVC curve B) maximizes profits by prod..
Balance sheet preparation : Problem: Balance Sheet preparation: The following is a December 31, 2016, post-closing trial balance for Almway Corporation.
Favor of product pricing and profit with relevance : The recent merger of US Air and American Airlines received both national and local attention. The US Department of Justice contested the merger on the basis it would produce harmful monopoly-like behavior in the airline industry. Develop an argument ..
Principles of price discrimination and price leadership : The recent merger of US Air and American Airlines received both national and local attention. The US Department of Justice contested the merger on the basis it would produce harmful monopoly-like behavior in the airline industry. Develop an argument ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Draw a flow chart, hierarchy chart

Draw a flow chart, hierarchy chart, and write pseudocode for the following problem. • A weather sensing system calculates & prints a report on the following: ? Average temperature ? Highest temperature ? Lowest temperature ?

  Compare and contrast the major microeconomic failures

Essay Topic: Compare and contrast the major microeconomic failures and macroeconomic failures that you learned this semester.To get you started concentrate on two distinct chapters in the Schiller textbook. See chapter 4 for an analysis of the prob..

  Write a query that will return the customer number

Write a query that will return the customer number

  The partial pseudocode below designs a guessing game

1. The partial pseudocode below designs a guessing game where a random number between 1 and 10 is generated and then a player tries to guess the number. The decision structure part of the program is missing. It should display a message indicating whe..

  Case study program involved generating tests

You are required to design and implement a "Maths Test" program that generates simple maths questions, presents them one at a time to the user, and prompts them to enter the answer. The program determines whether the answer is correct and keeps tr..

  Under a mle-estimated unigram probability model

Qatar university, the largest university in qatar, aims to become the role model university in qatar and the arab region. it is also the only university in qatar that offers information retrieval courses.

  Inter-connected php pages for online shopping

The Registration Page (registration.php).  It has a header but has no registration button on the right. It will take the customer information (e.g., name, contact, etc.) and save them in Php session variables/array/object. At the submit button, it ve..

  A speeder traveling 45 miles per hour

Police chase: A speeder traveling 45 miles per hour (in a 25 mph zone ) passes a stopped police car which immediately takes off after the speeder. If the police car speeds up steadily to 60 miles/hour in 10 seconds and then travels at a steady 60 mil..

  Mitigating cloud computing risks

Imagine you are an Information Security Manager in a medium-sized organization. Your CIO has asked you to prepare a case analysis report and presentation on establishing internal controls in cloud computing. The CIO has seen several resources onli..

  How does mildred dispose of her disappointments

How does Mildred dispose of her disappointments and negative emotions? Does she resolve these negative emotions or simply escape them?

  Declare an arraylist named taxrates

Declare an ArrayList named taxRates of five elements of type Double and initialize the elements (starting with the first) to the values 0.10 , 0.15 , 0.21 , 0.28 , 0.31 , respectively.

  How a large output impedence effect the behavior op circuit

How would a large OUTPUT impedence effect the behavior of an op amp circuit? please talk about how the large output impedence would effect the circuit.

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