• 0

How to Convert 16-bit to 32-bit


Question

7 answers to this question

Recommended Posts

  • 0

Just add a ****load of zero's in front of the 16bit representation.

Decimal: 1

Binary 8bit: 0000 0001

Binary 16bit: 0000 0000 0000 0001

Binary 32bit: 0000 0000 0000 0000 0000 0000 0000 0001

.

.

.

.

etc.

In other words... 32 bit is not a representation in the same way as hex and decimal for example.

32bit just means that a numbr (or character) is stored in a 32bit value.

  • 0

Not an expert so excuse the choice of words

I think point of a greater number bits is that they are processed in parralel or at the same time so in a 32 bit process more data is being processed in one go than in a 16 bit process and this makes it faster.

*wins award for worst explanation ever*

  • 0
  BobMarley said:
So its not actually base 32 just base 2 with 32 digits

Whats the point of that?

If you want to represent a color for example the lengty of the binary word defines the amount of colors you can display.

If a color is represented in a 8bit word you will only have 2^8 different colors.

If a color is represented in a 32bit word you will have 2^32 different colors.

Same goes with calculation of audio for example. A 64bit decoder can decode the audio stream far more accurate then a 32bit decoder, since it uses words of 64bits which allow more accuracy then 32bit words.

That is the point of using 32bit opposed to 16bit --> accuracy/more possibilities

  • 0

lol, when i came to this topic i was expecting a conversation about "real Mode" ,"32bit Protected mode" and "64bit protected mode". guess i was wrong. :rolleyes:

anyway, the point of having 32bit instead of 16 or 8 for example in case of addressing is that with 8bits, you can represent 2^8 addresses, even though you may have more, but only 2^8 8bit long addresses can be addressed and therefore accessed (it's in case you use all 8bits for addressing though, which is not the case, but...). if you have 16bits this number changes to 2^16 which is much higher than the previous one and so on.

if you ever worked with dos, you know that in dos 16bit addressing is used and therefore the processor is essentially locked into a 16-bit mode which can address approximately 1MB of memory. This is 'DOS mode' or Real Mode. even if you have 1 gigabyte of memory, only 1MB of it can be addressed and used.

it was just an example to show you why these modes are created and how they work, hope i was some help.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.