flat assembler
Message board for the users of flat assembler.
Index
> Main > operand size not specified when calling my own proc. |
Author |
|
LocoDelAssembly 09 May 2008, 21:45
And how PID and PPP are defined?
|
|||
09 May 2008, 21:45 |
|
SomeoneNew 10 May 2008, 08:18
PPP is defined inside my proc at the top:
Code: local PPP:DWORD and PID is passed to this proc as DWORD too. (I just wrote them uppercased on the previous post but in the source they are all equal). the proc im trying to invoke is defined on top of my calling proc, what could be the issue here? _________________ Im new, sorry if I bothered with any stupid question |
|||
10 May 2008, 08:18 |
|
revolution 10 May 2008, 08:46
The problem is that you are using INVOKE, I think you will find that STDCALL will work fine.
|
|||
10 May 2008, 08:46 |
|
SomeoneNew 10 May 2008, 09:37
Thanks, that seems to work (compiles ok) however my code doesn't work as it should (and it's a direct port from MASM) too bad the source is quite long and I don't know anyone whos willing to find whats wrong with it, do you know of any fasm IRC channel I can log on to ask?
in case someone has a little bit of time and can check for obvious rookie errors, heres the source of the routine that isn't working properly: masm: http://pastebin.com/m551d088a (original) fasm: http://pastebin.com/m143afeb7 (ported) When I call the masm one I get a certain result (the properly encrypted buffer) but when I call the fasm one, I get rubbish!. Perhaps I have a few stupid mistakes in my port and thats causing the malfunction, if so I might of committed the same mistake on the other routines I ported as well... |
|||
10 May 2008, 09:37 |
|
revolution 10 May 2008, 11:36
I notice the following:
Code: invoke ReadProcessMemory,[Process], MEMORY_ADDRESS_XTEA_Key, DWORD[XTEAkey], 16, NULL Code: invoke ReadProcessMemory,[Process], MEMORY_ADDRESS_XTEA_Key, addr XTEAkey, 16, NULL |
|||
10 May 2008, 11:36 |
|
SomeoneNew 10 May 2008, 13:07
Thanks, thanks a lot. I finally got to fix this
I know I have a long way to go, but I'm certain that this is the right path. I don't want to depend on any frameworks and I certainly do want to understand what my code does. Say, aside from the IA32 books, what else should I read? (I'm going through the FASM docs right now but I'm a slow reader). _________________ Im new, sorry if I bothered with any stupid question |
|||
10 May 2008, 13:07 |
|
revolution 10 May 2008, 13:20
SomeoneNew wrote: Say, aside from the IA32 books, what else should I read? |
|||
10 May 2008, 13:20 |
|
SomeoneNew 10 May 2008, 16:36
Better than Life is a great book, indeed. I was however asking about programming books My bad English always comes back to haunt me.
Either way, I noticed my DLL ends up being a little bigger than the MASM counterpart, any ideas?. _________________ Im new, sorry if I bothered with any stupid question |
|||
10 May 2008, 16:36 |
|
revolution 10 May 2008, 17:10
SomeoneNew wrote: Either way, I noticed my DLL ends up being a little bigger than the MASM counterpart, any ideas?. |
|||
10 May 2008, 17:10 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.