flat assembler
Message board for the users of flat assembler.
Index
> Main > invoke (???) |
Author |
|
ouadji 15 Jun 2011, 17:18
this below does compile Code: invoke EndDialog,[hwnd_dlg],1 2 ; not ,1,2 ... but ,1 2 <-- !!! Result Code: push 1 push 2 push [hwnd_dlg] call EndDialog |
|||
15 Jun 2011, 17:18 |
|
idle 15 Jun 2011, 17:21
push 1 2 =
push 1 push 2 |
|||
15 Jun 2011, 17:21 |
|
ouadji 15 Jun 2011, 17:29
the comma is not essential with "invoke"? |
|||
15 Jun 2011, 17:29 |
|
vid 15 Jun 2011, 17:32
the comma is not essential with "push".
|
|||
15 Jun 2011, 17:32 |
|
typedef 15 Jun 2011, 18:00
i see a space and therefore i can say you are pushing too many argument.s
|
|||
15 Jun 2011, 18:00 |
|
ouadji 15 Jun 2011, 18:22
sorry, i don't understand "invoke" is not "push" and push doesn't work with a comma. |
|||
15 Jun 2011, 18:22 |
|
ouadji 15 Jun 2011, 19:11
ok, understood, tkank you Loco |
|||
15 Jun 2011, 19:11 |
|
vid 15 Jun 2011, 20:44
Loco: I agree in same cases this can cause ambiguity (eg. push 10 20 -1 5), but on other side, cases where you need to push multiple things are SO much more common. Practically every procedure has to do so.
|
|||
15 Jun 2011, 20:44 |
|
revolution 15 Jun 2011, 23:03
The only reason push allows spaces in operands is to support uses in procs. MS were too lazy to write a proper parser syntax so just allowed spaces instead. And now we get this type of problem. The law of unintended consequences.
|
|||
15 Jun 2011, 23:03 |
|
vid 16 Jun 2011, 00:13
Are you sure this is the real reason? I quite doubt that.
|
|||
16 Jun 2011, 00:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.