assembly - Hex to 2's complement decimal? -
each of these 16-bit words can interpreted either 2’s complement number or unsigned number. find decimal integer corresponds each interpretation.
a) 00 a3
b) b6 4a
okay i'm getting little confused on wording here. = 163 , b = 46,666 in decimal notation, unsigned number or result 2's complement? believe it's unsigned number. 2's complement, have put binary form? if possible, i'd love see example.
here's he's getting at.
you correct biz "...a=163 b=46,666 in decimal notation..."
that unsigned 16 bit interpretation.
if these signed 16 bit integers, first 1 still 163, while second 1 negative 18,870
what getting @ top bit sign bit, alerts fact negative number.
so, answer is...
- for unsigned numbers: have stated,
a=163, b=46,666 - for signed numbers: have stated.
a=163, b=-18,870(note, last 1 negative)
if need me go more detail this, i'll edit answer , show procedure doing change-o-matic steps in two's complement. in fact, did 3 hours ago in this answer here. (click on if need to)
Comments
Post a Comment