Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

What is 4365 - 3412 when these values represent signed 12-bit octal numbers stored in sign-magnitude format? The result should be written in octal. Show your work.

Short Answer

Expert verified

Result in octal = (7777)8

Step by step solution

01

Define sign-magnitude format

In the sign-magnitude format, the MSB is used to represent the sign of a number, and the remaining bits represent the magnitude of the number. Therefore, just add the sign bit to the left of the unsigned binary number. This representation is similar to the representation of signed decimal numbers.

02

Convert (4365)8 into a binary number

The first number is (4365)8= (100 011110 101)2

The number is in signed magnitude form and the first bit is 1, So the number is a negative number

Now, the actual value in negative decimal is (000 011110 101)2

(000 011110 101)2= (-245)10

The first number is (-245)10

03

Convert (3412)8 into a binary number

The second number is (3412)8= (011100 001010)2

The number is in signed magnitude form and the first bit is 0, So the number is a positive number

Now, the actual value in positive decimal is (011100 001010)2= (1802)10

Therefore,

-245-1802 = -2047

-2047 is negative, So the first bit of the result is 1 in binary conversion.

Then, it’s magnitude is (2047)10

Now, (2047)10= (11111111111)2

It is given in the question that the number is in 12-bit format and as we know the given number is the negative number, so we add 1 at MSB.

(111111111111)2=(7777)8

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

[20] Write down the bit pattern assuming that we are using base 30 numbers in the fraction instead of base 2. (Base 16 numbers use the symbols 0–9 and A–F. Base 30 numbers would use 0–9 and A–T.) Assume there are 20 bits, and you do not need to normalize. Is this representation exact?

Question: [45] The following C code implements a four-tap FIR filter on input array sig_in. Assume that all arrays are 16-bit fixed-point values. for (i 3;i< 128;i ) sig_out[i] sig_in[i-3] * f[0] sig_in[i-2] * f[1] sig_in[i-1] * f[2] sig_in[i] * f[3]; Assume you are to write an optimized implementation this code in assembly language on a processor that has SIMD instructions and 128-bit registers. Without knowing the details of the instruction set, briefly describe how you would implement this code, maximizing the use of sub-word operations and minimizing the amount of data that is transferred between registers and memory. State all your assumptions about the instructions you us

Write down the binary representation of the decimal number 63.25 assuming it was stored using the single precision IBM format (base 16, instead of base 2, with 7 bits of exponent).

Calculate 1.666015625×100×1.9760×104+1.666015625×100×-1.9744×104 by hand, assuming each of the values is stored in the 16-bit half-precision format described in Exercise 3.27 (and also described in the text). Assume 1 guard, 1 round bit, and 1 sticky bit, and round to the nearest even. Show all the steps, and write your answer in both the 16-bit floating-point format and in decimal.

Calculate the sum of 2.6125×101and4.150390625×10-1 by hand, assuming A and B are stored in the 16-bit half precision described in Exercise 3.27. Assume 1 guard, 1 round bit, and 1 sticky bit, and round to the nearest even. Show all the steps

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free