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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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