flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > how do stdcall and invoke work ? |
Author |
|
Vasilev Vjacheslav 25 Apr 2005, 10:36
only simple calls can't be used with params
Code:
invoke strlen,szString
equal to: Code: push szString call [lstrlen] if you want to use string you must operate with him address Code: szString db "test",0 ... push szString call [lstrlen] Quote:
yes, it is possible, you can use lstrcpy function (copy string to a buffer) Code: .data section anotherstring db "this is my string",0 ... .idata section mystring rb 16 ... .code section invoke lstrcpy,mystring,anotherstring after this, you have mystring="this is my string" Last edited by Vasilev Vjacheslav on 25 Apr 2005, 11:09; edited 1 time in total |
|||
25 Apr 2005, 10:36 |
|
IronFelix 25 Apr 2005, 10:48
Vjacheslav, any call macroses (stdcall, invoke, cinvoke, etc.) can be used without parameters. They are macroses, so you can check, whether there are any parameters passed, and if it isn't, make only appropriate call.
In fasm package stdcall (or invoke - I don't remember exactly) doesn't work without params, but you can easily fix it by yourself. Best regards. |
|||
25 Apr 2005, 10:48 |
|
Vasilev Vjacheslav 25 Apr 2005, 11:12
yes, you right
|
|||
25 Apr 2005, 11:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.