News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

stdcall

Started by SierraC, February 26, 2018, 02:57:39 PM

Previous topic - Next topic

SierraC

Hello friends, please help

.model flat, stdcall

What is stdcall?
How does it work?
please explain me

Thanks in advance.

hutch--

We don't normally do "requests" but it goes something like this.

.MODEL = memory model, over time there has been more than 1.
FLAT = a memory model that is linear in design with no combined segment/offset addressing.
STDCALL = standard Win32 calling convention. push arguments in reverse order then call the procedure. The procedure reads the arguments left to right on the stack and must balance the stack on exit.

SierraC

Quote from: hutch-- on February 26, 2018, 03:55:23 PM
We don't normally do "requests" but it goes something like this.

.MODEL = memory model, over time there has been more than 1.
FLAT = a memory model that is linear in design with no combined segment/offset addressing.
STDCALL = standard Win32 calling convention. push arguments in reverse order then call the procedure. The procedure reads the arguments left to right on the stack and must balance the stack on exit.
Ok, im sorry

felipe

Well SierraC, don't you worry if you came here to stay and learn. But if you didn't, can you  talk a little why you want to know about that?
Just curious about what others do in the same world... :biggrin:

SierraC

Quote from: felipe on February 27, 2018, 02:40:42 PM
Well SierraC, don't you worry if you came here to stay and learn. But if you didn't, can you  talk a little why you want to know about that?
Just curious about what others do in the same world... :biggrin:
Not deleting my account  ;) ;) ;)

Mikl__

#5
Hi, SierraC!
See
  • http://www.cyberforum.ru/post5323068.html (.model option)
  • https://en.wikipedia.org/wiki/X86_calling_conventions stdcall

jj2007

If you can't understand Mikl's first link, try this version 8)

Scroll down to Structure of the program. It's worth it, I've never seen such a good explanation :t

SierraC

Quote from: Mikl__ on February 27, 2018, 05:49:15 PM
Hi, SierraC!
See
  • http://www.cyberforum.ru/post5323068.html (.model option)
  • https://en.wikipedia.org/wiki/X86_calling_conventions stdcall
Thanks Master