Peggy
Peggy

Reputation: 41

The smallest signed 16 bit number in decimal is

I am trying to figure out this question for my Assembly Language Class.

  1. The smallest signed 16 bit number in decimal is ______

My Professor said that my answer of
-32768 is wrong. How do I figure this out correctly?

13 The largest unsigned 8 bit number in decimal is _______

My answer is255. Is this correct?

Upvotes: 2

Views: 6401

Answers (1)

biniow
biniow

Reputation: 401

  1. It depends of representation:

In two's complement: -(2^15) = -32768

sign/magnitude: -(2^15-1) = -32767

  1. 255 is correct

Upvotes: 4

Related Questions