Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | May 2017 |
Last Sign in: | 305 Weeks Ago, 3 Days Ago |
Questions Answered: | 66690 |
Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
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?
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- -----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------. P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll