Assign the hexadecimal equivalent for ieee

Assignment Help Assembly Language
Reference no: EM133273060

Data Structures and Advanced Programming

Programming Project

Write an ARM assembly program ieee.s to assign the hexadecimal equivalent for IEEE 32 bit format of a decimal number in variable ie and extract the sign bit, the exponents and the fraction part in the function mask. (Review floating point conversions and formats before doing this program). Using the extracted bits convert IEEE format to TNS format.

Tandem Non-Stop Series (TNS) are super reliable and widely used supercomputers, which are used as servers in banks, financial institutions, military, etc. A single precision floating- point number is as 1 sign bit, next 22 bits for fraction and last 9 bits for exponent. The bias is 256.

2323_assembly program.jpg

 

And IEEE standard 754 single presented as 1 sign bit, next 8 bit for exponent and last 23 bits for fraction. The bias is 127.

2152_assembly program1.jpg

 

Example
IEEE Representation of 14.25(Decimal),41640000(Hex) TNS Representation of 14.25(Decimal),64000103(Hex)

Format of program with example:
-3.75 has the IEEE 32-bit format as below 11000000011100000000000000000000
The hex equivalent will be 0xc0700000; store that in variable ie.
In Function masking

R1= 10000000000000000000000000000000
After shifting R1 sign bit= 00000000000000000000000000000001 = 110 0r 0x1 R2= 01000000000000000000000000000000
After shifting R2, exponent= 00000000000000000000000010000000 = 12810 or 0x80

R3= 00000000011100000000000000000000 = 0x700000
R3 will have the fraction part In Function convert
Convert the IEEE format to TNS format (given above) and move the result to R5 In main
Call functions masking and convert
Well documented code a) Name, date, time spent on program, and comments.
You will turn in ieee.s

 

Reference no: EM133273060

Questions Cloud

Pros and cons of three strike law : List and explain 2 pros and 2 cons of a three strike law? Is it effective? If so, why? If not, what would make it more effective?
What theory is related to announcement materials : What theory is related to announcement materials used as communication for garbage disposal in a barangay? Expound anf explain
What goal would you select to evaluate in this process : What goal would you select to evaluate in this process? What control could you use to measure progress toward the goal
What arguments support your selection : What is the most important topic among all those discussed in the module?
Assign the hexadecimal equivalent for ieee : Write an ARM assembly program ieee.s to assign the hexadecimal equivalent for IEEE 32 bit format of a decimal number in variable ie and extract the sign bit, th
European commission case against google : How do you assess the European Commission's case against Google? If you were hired as Google's attorney, how would you defend the company's practices?
What does hume mean by impressions : What does Hume mean by "impressions" and why does he start there? Is he right? Defend or criticize Hume's empiricist starting point
Molder of dreams by guy doud : Instructions: Based on the film "Molder of Dreams by Guy Doud," answer the following questions below.
What is key space and what is key length : What is key space? What is key length? If your iPhone have 6-digit password, how many possible keys

Reviews

Write a Review

Assembly Language Questions & Answers

  Implement the above fib function in assembly

Implement the above fib function in assembly, i.e., translate fib into an equivalent assembly procedure; Implement your main procedure which lets the user enter the number n, calls procedure fib to get the nth Fibonacci number.

  What is in 2s complement the biggest number

Get a number X from the user and a seed S (both positive), then print out X, X+S, X+2S, X+3S,... Outputs must occur on the same line .

  Find all the prime numbers between 2 and n inclusive

For this problem you will find all the prime numbers between 2 and N inclusive. A number is prime if it is only evenly divisible by itself and 1.

  Create a comment-based algorithm to solve the problems

Program with Small Parts Create a program which adds the following functionality - ask the user for the value of the multiplier or divisor as appropriate

  Calculate your grades based on the number of points you get

Create a program that calculates your grades based on the number of points you accumulate over the entire semester

  Write a function that accepts a char array

Write a function that accepts a char array, its size and a char to search for in the given array. Use PROTO, INVOKE and LOCAL keywords - Find four different ways to reset eax other than "mov eax, 0"

  Multiply by using shift and add instructions

How does real time PCR work to quantify the initial amount of the DNA template? How should the method be modified to quantify the initial amount of RNA template extracted from tissue or cells?

  Assembly-language program

Write an assembly-language program to add each element of list1 to the corresponding element of list2 and store it in the same location of list2. Use a loop.

  What problems would have to be solved to do it the other way

Most assemblers for the x86 have the destination address as the first operand and the source address as the second operand. What problems would have to be solved to do it the other way?

  Write program that asks user to enter integer dollar amount

Write an assembly language program that asks the user to enter an integer dollar amount between 1 and 5,000

  Prepare an assembly language program

Prepare an assembly language program that prints your full name on the screen. Use .ASCII pseudo-op to store the characters at the top of your program.

  Marie program that will input a variable number

Develop a MARIE program that will input a variable number of user entered DECimal whole number grades, validating each one (0-100) in a subroutine

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