flat assembler
Message board for the users of flat assembler.
Index
> Windows > x64 call parameters |
Author |
|
vid 28 Jul 2011, 01:37
You gave too little info. At what position in code are we trying to get "left" from stack? If inside the procedure "looking", that's because "CALL" instruction pushes return address to stack.
Shadow space is for called procedure, to have place where it can save first 4 parameters parameters (passed in registers) should it need to. In case you don't know, first 4 procedure parameters are passed in registers (it's not obvious in code you posted) My suggestion: disassemble and/or trace some x64 code that came out of compiler. This is sort of thing which is hard to explain but easy to see for yourself. |
|||
28 Jul 2011, 01:37 |
|
Fred 28 Jul 2011, 01:45
Ah, yes, sorry. I'm trying to access it from within the call.
Quote: If inside the procedure "looking", that's because "CALL" instruction pushes return address to stack. I was thinking it might be something like that. Thanks for clearing it out. :) Quote: Shadow space is for called procedure, to have place where it can save first 4 parameters parameters (passed in registers) should it need to. In case you don't know, first 4 procedure parameters are passed in registers (it's not obvious in code you posted) Ah, okay. |
|||
28 Jul 2011, 01:45 |
|
revolution 28 Jul 2011, 01:54
You only have to follow the fastcall standard when you call an OS API function. Inside your own internal code you can do whatever you want.
|
|||
28 Jul 2011, 01:54 |
|
Fred 28 Jul 2011, 01:58
Hmm. That makes sense. I could swear it wasn't working before if I didn't do sub rsp,28h before a regular call. Maybe I had some api functions in those calls that changed some reg values.
|
|||
28 Jul 2011, 01:58 |
|
typedef 28 Jul 2011, 06:28
Last edited by typedef on 28 Jul 2011, 17:56; edited 2 times in total |
|||
28 Jul 2011, 06:28 |
|
vid 28 Jul 2011, 09:28
typedef: Now try to think a bit about what you posted, and feel ashamed!
|
|||
28 Jul 2011, 09:28 |
|
typedef 28 Jul 2011, 17:57
vid wrote: typedef: Now try to think a bit about what you posted, and feel ashamed! What are you talking about dude? |
|||
28 Jul 2011, 17:57 |
|
Fred 20 Aug 2011, 21:59
I wonder what happened here, lol o.o
Didn't get a notification mail... maybe that's a good thing though... |
|||
20 Aug 2011, 21:59 |
|
vid 20 Aug 2011, 22:15
typedef posted something that was wrong, I told him, and he edited it out of his post. Notice the "Last edited by typedef on 28 Jul 2011, 18:56; edited 2 times in total" part.
|
|||
20 Aug 2011, 22:15 |
|
Fanael 20 Aug 2011, 22:34
Yay, asmretard-like methods are still alive!
|
|||
20 Aug 2011, 22:34 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.