1

The x64dbg calculator can evaluate hex expressions.

enter image description here

Is there a syntax to calculate the sum of a hex value and a decimal value? For the example in the snapshot, is it possible to treat 10 as a decimal? The expected result is 939936F59A. If it can't, what's the most convenient tool to do this kind of calculation?

1

Yes, it is.

For decimal numbers, use the syntax with the period just before the number, e.g. .10:

enter image description here

Particularly, in your case you will obtain exactly what you wanted (I omitted leading zeroes):

enter image description here

2
  • Yes, it works! How did you find it? The documentation is basically empty! Nov 16 '21 at 12:01
  • 1
    I didn't search for it, I already read the complete doc.:-) You're right, it is spare enough. Here is the link to the relevant part: Numbers. I quote from it: “All numbers are interpreted as hex by default! If you want to be sure, you can x or 0x as a prefix. Decimal numbers can be used by prefixing the number with a dot: .123=7B.”
    – MarianD
    Nov 16 '21 at 12:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.