View previous topic :: View next topic |
Author |
Message |
Negima I post too much
Reputation: 5
Joined: 22 May 2007 Posts: 2221
|
Posted: Fri Nov 30, 2007 9:34 pm Post subject: Why does ASM use hexadecimal? |
|
|
Wouldn't it just be a hell lot easier for people to use decimal?
|
|
Back to top |
|
 |
Aikos Cheater
Reputation: 0
Joined: 26 Nov 2007 Posts: 47
|
Posted: Fri Nov 30, 2007 9:36 pm Post subject: |
|
|
Cant you use 1249875d for decimals? (Correct me if I am wrong since I havent touched MASM for a while)
|
|
Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Sat Dec 01, 2007 7:55 pm Post subject: |
|
|
What kind of dumb question is this... Do you know nothing of computers?
_________________
|
|
Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Sat Dec 01, 2007 8:00 pm Post subject: |
|
|
Computer is programed in 4 byte. there is absolutely no way for the computer to go into decimal because you need 16 different combinations to fill in the 4 byte allocation. If the computer were doing a xor calculation and it ends up as 1111 which is F and has no value to represent it it would crash your computer. So there. Thats why computer = Hexdecimal. Humans= Decimal. Leet Hackers = Hexdecimal and Decimal
|
|
Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sat Dec 01, 2007 8:05 pm Post subject: |
|
|
Well, I could name a few reasons why, but here are the basics:
- You can store higher numbers in less space.
- More address space. (Because of above.)
- Binary is base 2, so the base of the number has to be (2^x). Since octal is small, the next step up would be hexadecimal.
|
|
Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Sat Dec 01, 2007 8:24 pm Post subject: |
|
|
Flyte wrote: | Well, I could name a few reasons why, but here are the basics:
- You can store higher numbers in less space.
- More address space. (Because of above.)
- Binary is base 2, so the base of the number has to be (2^x). Since octal is small, the next step up would be hexadecimal. |
I don't necessarily agree. If it was so great why didn't they take it to the next level and fit to 22 - a - decimal? ( 32 Digits)???
|
|
Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sat Dec 01, 2007 8:29 pm Post subject: |
|
|
dnsi0 wrote: | I don't necessarily agree. If it was so great why didn't they take it to the next level and fit to 22 - a - decimal? ( 32 Digits)??? |
The next base up would be 32, not 22. It isn't used it because it is impractical.
|
|
Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Sat Dec 01, 2007 9:05 pm Post subject: |
|
|
dnsi0 wrote: | Thats why computer = Hexdecimal. | Binary*
Hexadecimal is just a way to represent a number, just like the others.
|
|
Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Sun Dec 02, 2007 12:33 pm Post subject: |
|
|
Yes but the binary can be converted perfectly into 16 digits.
Flyte: You would use the 22 a decimal the same way as the hexdecimal
Hex means 6 so its 10 + 6 = 16 digits.
22 a decimal is 22 +10 = 32 digits.
|
|
Back to top |
|
 |
|