Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Assembly (http://www.programmingforums.org/forum20.html)
-   -   Hexadecimal (http://www.programmingforums.org/showthread.php?t=10263)

Edgar Jun 9th, 2006 1:28 PM

Hexadecimal
 
Can you guys give me a had with this addition, I CAN'T FIGURE IT OUT

AE

2A
__

NSchnarr Jun 9th, 2006 1:36 PM

D8,

Try using calculator and switching it to scientific mode.
AE = 174
2A = 42
D8 = 216

As for the actual way to add hex numbers, I cant remember, but im sure google will help

DaWei Jun 9th, 2006 1:55 PM

Same way you do it in decimal, Edgar, but it isn't drilled into you like that, so it's no fun. You know that 5 + 3 = 8, because you committed it to memory. You can also do it the 'hard way'. Five anna 1 is 6 anna 1 is 7 anna 1 is 8. Same with hex. E + A = 8, carry the 1. If you convert beforehand you have to convert back, which is a pain. So is doing it in the hard way: E anna 1 = F anna 1 = 0 (carry the 1, 10) anna 2 = 11 .... blah blah, BS. For me, the best thing to do is just memorize the stuff and go with it. Since you don't have to live with it on a daily basis before the invention of such calculators, you probably just wanna go that route.

Edgar Jun 9th, 2006 2:07 PM

Thank You


All times are GMT -5. The time now is 8:08 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC