Author Topic: stdcall  (Read 1417 times)

SierraC

  • Regular Member
  • *
  • Posts: 4
stdcall
« on: February 26, 2018, 02:57:39 PM »
Hello friends, please help

.model flat, stdcall

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

Thanks in advance.
« Last Edit: February 26, 2018, 05:29:19 PM by SierraC »

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6500
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: stdcall
« Reply #1 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.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

SierraC

  • Regular Member
  • *
  • Posts: 4
Re: stdcall
« Reply #2 on: February 26, 2018, 05:35:58 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

  • Member
  • *****
  • Posts: 1240
  • Eagles are just great!
Re: stdcall
« Reply #3 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:
Felipe.

SierraC

  • Regular Member
  • *
  • Posts: 4
Re: stdcall
« Reply #4 on: February 27, 2018, 03:42:40 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__

  • Member
  • ****
  • Posts: 752
Re: stdcall
« Reply #5 on: February 27, 2018, 05:49:15 PM »
« Last Edit: March 12, 2018, 07:20:41 PM by Mikl__ »

jj2007

  • Member
  • *****
  • Posts: 9589
  • Assembler is fun ;-)
    • MasmBasic
Re: stdcall
« Reply #6 on: February 27, 2018, 07:23:53 PM »
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

  • Regular Member
  • *
  • Posts: 4
Re: stdcall
« Reply #7 on: February 27, 2018, 07:48:17 PM »