Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Why does ASM use hexadecimal?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Negima
I post too much
Reputation: 5

Joined: 22 May 2007
Posts: 2221

PostPosted: Fri Nov 30, 2007 9:34 pm    Post subject: Why does ASM use hexadecimal? Reply with quote

Wouldn't it just be a hell lot easier for people to use decimal?
Back to top
View user's profile Send private message Visit poster's website
Aikos
Cheater
Reputation: 0

Joined: 26 Nov 2007
Posts: 47

PostPosted: Fri Nov 30, 2007 9:36 pm    Post subject: Reply with quote

Cant you use 1249875d for decimals? (Correct me if I am wrong since I havent touched MASM for a while)
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sat Dec 01, 2007 7:55 pm    Post subject: Reply with quote

What kind of dumb question is this... Rolling Eyes Do you know nothing of computers?
_________________
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Sat Dec 01, 2007 8:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sat Dec 01, 2007 8:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Sat Dec 01, 2007 8:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sat Dec 01, 2007 8:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Sat Dec 01, 2007 9:05 pm    Post subject: Reply with quote

dnsi0 wrote:
Thats why computer = Hexdecimal.
Binary*

Hexadecimal is just a way to represent a number, just like the others.
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Sun Dec 02, 2007 12:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites