Log in

View Full Version : Having a keygen compilation hex error......


kittmaster
March 16th, 2006, 22:32
I'm building a keygen with masm and I've got to the point that its almost ready. When a multiplier constant is applied masm needs to know that it is hex when the code is ripped and a lower case h is added to the end of the constant. Well there are two constants that for some reason will not compile correctly. Not sure what I'm missing. I have also done serveral other keygens with no issues, but this is the first time I've come across this problem. I've attach a full screen shot of olly with the routing, masm code, and the compile error. You can see that one with the h for hex and the other without just to see if it will work and both fail. The Movzx is line number 250. Can you peep this and tell me what I may be doing incorrectly

Thanks

http://www.kittmaster.com/vette/ScreenShot004.png

Chris

Av0id
March 16th, 2006, 23:57
you must use constants in this way:

0DEADFACEh or 0x0DEADFACE

LLXX
March 17th, 2006, 02:41
One has to put 0 in front of hex constants which begin with a letter... the assembler is rather stupid in that it considers those to be symbol names instead of numbers if it does not find a numerical digit.

kittmaster
March 17th, 2006, 08:42
Wow, that makes sense.

I scrubbed the help file and google but came up empty

Thanks!!!

Chris