flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Kenny80 30 Oct 2005, 08:17
Not sure where to post this!
this is sha1,inc from witeg's homepage, i changed macro lines to more fasm friendly but still it complains about some lines everytime i try use this inc file in program i get following error: Error invalid address lea ebp,[ebp+esp+05A827999h] sha1.inc(161) sha1.inc(27) line (161) is Trans_0 eax,ebx,ecx,edx,ebp,dword [_temp_buffer+4*0] and line (27) is lea argument_5, [argument_5+esp+05A827999h] i added file here, anyone who can help me point out error?
|
|||||||||||
![]() |
|
Kenny80 01 Nov 2005, 13:12
...omfg...sometimes u just want put gun to my head blow brain out, so simple solution.....it worked btw!
|
|||
![]() |
|
Reverend 01 Nov 2005, 14:50
It is because of specific opcode encoding. When using combinations of two registers eg. [eax+edx], even that it is the same as [edx+eax] they're encoded in different way. But esp is an exception and can be encoded only in one way, and so we cannot have [esp*2] or [esp+esp]. This register can only be as a base register (on a first position).
But btw. fasm should in my opinion know if it's esp, and choose apriopriate encoding. Will it be ever made or is such situation part of creation principles, and we all have to learn to put esp on first position? ![]() |
|||
![]() |
|
Kenny80 01 Nov 2005, 19:15
source is free, i'm not that good at asm to take on task, but would really be handy i agree
|
|||
![]() |
|
Reverend 02 Nov 2005, 11:45
Yes, but the question was rather aimed at Privalov
![]() |
|||
![]() |
|
Kenny80 02 Nov 2005, 12:10
btw are u same reverend at R A G? (Reformed Asm Group)?
|
|||
![]() |
|
Reverend 02 Nov 2005, 17:32
Kenny80: Yes, I am. Nice to know that I'm recognized in the webspace
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.