694 views
0 0 votes

Q1) Calculate tc8 of -117, -127, 127, 0

Q2) What values are stored in the following tc8 registers:

  1. 10010001
  2. 00010001
  3. 01111111
  4. 0000000
  5. 11111111
50% Accept Rate Accepted 31 answers out of 62 questions

1 Answer

Best answer
1 1 vote
Q1-ANS)
for -117d:

    $-117d = -(01110101)b$

    $-(01110101)b = 10001010(oc8) + 1 = 10001011(tc8)$

for -127d:

    $-127d=-(01111111)b$

    $-(01111111)b = 10000000(oc8) + 1 = 10000001(tc8)$

for 127d:

    $127d = 01111111b = 01111111(tc8)$

for 0d:

    $0d = 00000000b$

    $Two's complement  = one's complement + 1 = 11111111(oc8) +1 = 00000000(tc8)$

    due to overflow the 9th digit is removed


Q2-ANS)

    1.

    $10010001(tc8) = -(01101110+1)d = -(01101111)b = -((0 × 2^7) + (1 × 2^6) + (1 × 2^5) + (0 × 2^4) + (1 × 2^3) + (1 × 2^2) + (1 × 2^1) + (1 × 2^0))d  = -111d$

    2.

    $00010001(tc8) = ((0 × 2^6) + (0 × 2^5) + (1 × 2^4) + (0 × 2^3) + (0 × 2^2) + (0 × 2^1) + (1 × 2^0))d = 17d$

    3.

    $01111111(tc8) = ((1 × 2^6) + (1 × 2^5) + (1 × 2^4) + (1 × 2^3) + (1 × 2^2) + (1 × 2^1) + (1 × 2^0))d = 127d$

    4.

    $0000000 (tc8) = ((0 × 2^6) + (0 × 2^5) + (0 × 2^4) + (0 × 2^3) + (0 × 2^2) + (0 × 2^1) + (0 × 2^0))d = 0d$

    5.

    $11111111(tc8) = -(00000000 + 1)b = -(00000001) = -1d$


Answer submitted by Amirhossein Azizafshari from Thursday 1 PM class.
selected by

Related questions

3 3 votes
1 1 answer
849
849 views
Math asked Sep 28, 2018
849 views
I can solve the Truth Table, but do not know how to verify my answers. Could you please suggest a tool for it?
1 1 vote
1 1 answer
2.3k
2.3k views
Math asked Sep 28, 2018
2,318 views
I am taking a math course and I am looking for solution manual of Discrete Mathematics and Its Applications by Rosen?
3 3 votes
1 1 answer
847
847 views
SriAmin asked Oct 3, 2018
847 views
In terms of the precedence order of operative, it followings like thisOperativeOrderNOT1AND2OR3 ->4< >5But I was wondering waht would be the order of precedence for the o...
5 5 votes
3 answers 3 answers
2.7k
2.7k views
SriAmin asked Sep 16, 2018
2,701 views
I was wondering on how to convert between number systems when the factor of decimal in binary and hexadecimal numbers is in play. For example,Convert 011010.011b into a d...
3 3 votes
1 answers 1 answer
5.2k
5.2k views