macabre Posted January 20, 2008 Posted January 20, 2008 Hey all,I wanted to use this template Arc Flash by Ufo-Pu55y but I needed an MD5 hashing algo. So I took the ASMmd5.asm from another template by dR.cARBOn. Without including the ASMmd5 code the Arc Flash template compiles and runs fine. Once I include this I get "instruction operands must be the same size" Errors in the Main Arc Flash file. The lines that are causing the issue look like: mov [edi],eax mov edx,eax mov edx,[edi]@@: mov eax,[esi]Now, obviously these are the same size and the ASMmd5 hash proc seems fairly straight forward. I know assembly but I'm not super familiar with masm and I'm using RadASM for the project since it had a .rap file (Thanks Ufo-Pu55y!! :biggrin: )I have no idea what's causing this issue. Has anybody else seen it?-macabre-
macabre Posted January 21, 2008 Author Posted January 21, 2008 I believe I found what was causing the issue. In the ASMmd5.asm file there is the following line: assume esi:ptr MD5RESULT So when the proc is done you can simply add assume esi:nothing I believe that will take care of this issue. (Haven't fully tested but it compiles now)
Angel-55 Posted January 22, 2008 Posted January 22, 2008 tried defining like DWORD PTR [EDX] for the pointer ?? it should compile
Ufo-Pu55y Posted January 22, 2008 Posted January 22, 2008 assume esi:nothingI think it's a good practice to always end(surround)an opened assume instruction with a closing 'assume xxx:nothing' !Prevents confusion sometimes...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now