Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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?

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91695564
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Computer Engineering

In some states allow requires drivers to turn on their

In some states allow requires drivers to turn on their headlights when driving in the rain. A highway patrol officer believes that lesson one-quarter of all the drivers follow this rule. As a test, he randomly samples 20 ...

Suppose a lawn care company can install either mulch or

Suppose a lawn care company can install either mulch or pine straw for flowerbeds of their residential customers. A workday typically runs 12.5 hours (or 750 minutes) and the company can install mulch in 30 minutes and p ...

C programminghelp with a program positivec that include the

***C PROGRAMMING*** Help with a program positive.c that include the following function: void extract(int *a, int n, int *positive, int *size); The function should use pointer arithmetic, not subscripting. The extract fun ...

Can someone please help me with this pleasetaskthe purpose

Can Someone please help me with this please: Task: The purpose of this assignment is to empirically measure attributes for binary search trees. Steps: Create a program that will build a binary search tree (BST) by adding ...

Question what are the subnets that can be supported with

Question : What are the subnets that can be supported with this prefix 204.15.5.0/27. How many hosts can be supported by each of these subnets? Please typewrite your answers, no handwritten answers please.

Question what is a ipsec ssl vpn dtls dmarc pki pem ssh

Question : What is a( IPSEC, SSL , VPN, DTLS , DMARC, PKI, PEM, SSH, Kerberos, DKIM) ?. Brifley and answer the following brief. Identify the security problems How the security protocol was used to solve the problems OR e ...

What is the syntax of a for statement in the bash

What is the syntax of a for statement in the bash script? Write a snippet of code using a for loop that will write numbers less than 100 that are evenly divisible by both two and three.

Can someone please help me with this pleasetaskthe purpose

Can Someone please help me with this please: Task: The purpose of this assignment is to empirically measure attributes for binary search trees. Steps: Create a program that will build a binary search tree (BST) by adding ...

Suppose pointers are 4 bytes long and keys are 12 bytes

Suppose pointers are 4 bytes long, and keys are 12 bytes long. How many keys and pointers will a block of 16,384 bytes have?

Create a class named horse that contains data fields for

Create a class named Horse that contains data fields for the name, color, and birth year. Include get and set methods for these fields. Next, create a subclass named RaceHorse, which contains an additional field that hol ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As