Represent the fixed point decimal number

Assignment Help Other Subject
Reference no: EM132485065

Assignment Questions -

QUESTION 1 -

(a) Represent the fixed point decimal number + 120.875 in IEEE 754 floating point format. Express your final answer in hexadecimal showing all the working.

(b) Consider a hypothetical floating point format which is similar to IEEE format except that it uses 6 bit excess-31 notation for the exponent and 25 bits for the mantissa in a 32 bit machine. Represent the decimal number from part (a) in hexadecimal using this hypothetical format. Show all the working.

QUESTION 2 -

Given a very small binary number 0.00001100011, represent this number in IEEE 754 floating point format. Express your final answer in hexadecimal showing all the working.

QUESTION 3 -

The hexadecimal number C2618000 represents a decimal number using IEEE 754 floating point format. What decimal number does this represent?

QUESTION 4 -

1. Type the following program as covered in Lecture 3 (slide 23) using the appropriate mnemonics. Run the program using the given LMC executable in the Step by Step mode. Describe in words what you see when you execute the LMC program in this mode.

Mailbox

Code

Instruction Description

00

901

input 1st Number

01

399

store data

02

901

input 2nd Number

03

199

add 1st Number to 2nd Number

04

902

output result

05

000

stop

99

000

data

QUESTION 5 -

Type the following program as covered in Lecture 4 (slide 33). Run the program using the LMC executable in the Step by Step mode. Describe in words what you see when you execute the LMC program in this mode.

00

IN

901

input first number

01

STO 10

310

save in box 10

02

IN

901

input second number

03

STO 11

311

save in box 11

04

SUB 10

210

result = second - first

05

BRP 08

808

if result < 0 then

06

LDA 10

510

negative

07

SUB 11

211

result = first - second

08

OUT

902

output result

09

HLT

000

stop

10

DAT 00

000

first number

11

DAT 00

000

second number

QUESTION 6 -

The following Little Monkey Computer program is supposed to add two input numbers, subtract third input number from the sum, and output the result., i.e.,

OUT = IN1 + IN2 - IN3

Mailbox

Mnemonic Code

Numeric Code

00

IN

901

01

STO99

399

02

IN

901

03

ADD99

199

04

STO99

399

05

IN

901

06

SUB99

299

07

OUT

902

08

HLT

000

(i) Enter the above program as given. Is the output what you had expected?

(ii) What is wrong with this program?

(iii) Modify the program so that it produces the correct result.

(iv) Verify your modified program using the LMC executable.

QUESTION 7 -

The steps that the Little Monkey in our LMC model performs are closely related to the way in which the CPU actually executes instructions in a real computer.

Draw a flowchart that carefully describes the steps that the Little Monkey follows to execute a branch instruction.

Note: Include all the program files in your submission.

Reference no: EM132485065

Questions Cloud

Describe how the process is performed : Biotechnology is the use of a living thing or any part of a living thing to make a product or process that improves human life. Choose 1 of the following.
Write an LMC program that accepts two values as input : Write an LMC program that accepts two values as input and produces the absolute value of the difference as output. Write pseudocode first to perform this task
What is the business of aig : 1. What is the business of AIG? What is AIG's organizational structure?
What is the dividend yield if annual dividend : You own 400 shares of Western Feed Mills stock valued at $51.20 per share. What is the dividend yield if your annual dividend income is $352?
Represent the fixed point decimal number : Represent the fixed point decimal number + 120.875 in IEEE 754 floating point format. Express your final answer in hexadecimal showing all the working
Find the present value of contract i : Clayton Kershaw, a dominating left-handed pitcher, is seeking to renew his contract with the L.A. Dodgers. The general manager (GM) of the Dodgers
What is the calculated t-value : What is the calculated t-value? Round your answer to two decimal places - Americans typically eat quickly and do not spend time enjoying their meal
What will be the price of the new board : What will be the price of the new board which will make you indifferent (i.e. NPV = 0) to sharing the board with your sister?
What is the real risk-free rate of return : On the basis of these data, what is the real risk-free rate of return? Round your answer to two decimal places. You read in The Wall Street Journal that 30-day

Reviews

Write a Review

Other Subject Questions & Answers

  Trailer for dictionary of obscure sorrows

You were assigned to watch the trailer for Dictionary of Obscure Sorrows, a web series that defines newly invented words for strangely powerful emotions

  What is a proper definition of over-policing

What is a proper definition of Over-policing and Define over-policing and explain whether there is a link between over-policing

  What leadership traits were apparent

What is the situation and who are the leader(s) and follower(s)? What leadership traits were apparent? What lessons do you take away from this example?

  Environments shape organizations research and theory

Environments shape organizations. In turn, organizations also shape the environments in which they interact. Organizations, in part, also choose which environments they enter and exit, choose which coalitions are most desirable, and determine the con..

  Find how long will it take to empty the tank

A 1-m diameter cylindrical tank has the initial water level h of 3 m. Find how long will it take to empty the tank

  Distinguish between leader pricing and bait pricing

Distinguish between leader pricing and bait pricing. What do they have in common? How can their use affect a marketing mix?

  Texas criminal justice laws

Texas state-level judges are currently selected through partisan elections. Should these judges continue to be selected in partisan elections

  Summarize and critique the efforts of the tsa

Summarize and critique the efforts of the Transportation Security Administration (TSA), U.S. Customs and Border Protection (CBP), and Federal Air Marshal (FAM) programs in border and transportation security.

  Evacuation stage of natural disaster response

Which of the following actions would an emergency manager perform during the evacuation stage of natural disaster response? Answer Maintain communications with power, water, sewage, and utilities agencies.

  Review a quantitative research study

you will be asked to review a quantitative research study - Oral Intensity: Reducing non-ventilator-associated hospital acquired pneumonia in care-dependent, neurologically impaired patients.

  Explain about dietary foods

Culturally related Health practices of Islamic culture with recommendations to change Bad health Practices. Explain about dietary foods, post mortum care, and post partum care

  Describe what you already know about the problem

This first assignment will become the foundation for the research plan that you will create in this course. Planning a research study requires critical.

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