Welcome to MSDN Blogs Sign in | Join | Help

Looking for a good tool for doing hex math

While I'm writing about all of these address tricks -- I figured I'd ask around if there's a good tool for manipulating hex values.  I just use "calc" which comes with Windows; if you put it into scientific mode it will handle hex values for you.  But it doesn't have very good shifting or bitwise functionality, and it always uses 64-bit values.  Most of the time I want to subtract and get the 32-bit value, not FFFFFFFF FFFFFFFF.  I like how easy it is to flip between hex and decimal in calc, but I wish I could do it without using the mouse.

So I figured I'd ask and see if anyone else knows of a better tool.

 

Published Friday, February 25, 2005 3:34 PM by sloh

Comments

# re: Looking for a good tool for doing hex math

Friday, February 25, 2005 4:27 PM by CN
It only uses 64-bit values if Qword is chosen. If you change it to Dword or Word (or Byte!) you get 32, 16 and 8 bits, respectively.

Only the nibble and single-bit arithmetics missing...

# re: Looking for a good tool for doing hex math

Friday, February 25, 2005 4:28 PM by CN
BTW, try F5 and F6 out. I hope you'll be happy with them...

# re: Looking for a good tool for doing hex math

Friday, February 25, 2005 4:37 PM by Sue Loh
Rock ON, CN! :-) I'll remember F5 and F6.

And you know, as I was writing that I was thinking I had seen once upon a time, a way to change to DWORD math. I went and hunted the menus but the selection was right in front of my face and I missed it. Blind. Is there a keyboard shortcut for that? ;-) Or even better, I wish it would remember my previous selection.

# re: Looking for a good tool for doing hex math

Friday, February 25, 2005 4:46 PM by TM
Once you're in HEX mode:
F12 = Qword
F2 = Dword
F3 = Word
F4 = Byte

It still won't remember your last setting, alas.

# re: Looking for a good tool for doing hex math

Friday, February 25, 2005 4:51 PM by Matt
F12, F2, F3, and F4 select Qword, Dword, Word, and Byte math, respectively.

# re: Looking for a good tool for doing hex math

Friday, February 25, 2005 9:29 PM by Kevin
You might want to try SuperCalc, from http://www.catch22.net/software/supercalc.asp
It allows calculations (including arithmetic, shifting, masking, etc) to be done by entering C language expressions. You can set the word size of the results to 8, 16, or 32 bits.

# re: Looking for a good tool for doing hex math

Sunday, February 27, 2005 5:42 PM by Sue Loh
Thanks Kevin, I'll give it a try.

# re: Looking for a good tool for doing hex math

Sunday, February 27, 2005 8:30 PM by Jeff
Buy yourself a Hp16C programmer's calculator. They don't make them anymore, but you can get one on eBay. Plus you get extra points since it uses RPN. It can handle 1's or 2's compliment, and setting width. Best programmer's calculator ever.

-Jeff

# re: Looking for a good tool for doing hex math

Monday, March 07, 2005 3:28 PM by james g.
Go look for hex workshop.

# re: Looking for a good tool for doing hex math

Friday, March 11, 2005 11:58 AM by Bas hendriks
if you like to freak with hp calculators...

HP Calculator Emulators for the PC
http://www.hpcalc.org/hp48/pc/emulators/

# re: Looking for a good tool for doing hex math

Monday, April 11, 2005 10:38 AM by Sarah
Hi Sue

Try the following sites:

http://www.iboost.com/tools/number.htm

http://centricle.com/tools/ascii-hex/

I tend to use them for this sort of stuff if I need it in a hurry... cut & paste is a wonderful thing sometimes! :)

# Sue Loh s blog Looking for a good tool for doing hex math | work from home

New Comments to this post are disabled
 
Page view tracker