flat assembler
Message board for the users of flat assembler.
Index
> Windows > [solved] where do I get the Macros for comcall and cominvk |
Author |
|
machinecoder 17 Aug 2013, 17:20
Found the Macros but
chucks a hissy fit and says "illegal instruction" Code: cominvk psl,QueryInterface, IID_IPersistFile,ppf Instruction box says this is the problem: assert defined com.object.psl sounds like I have a missing Macro "assert" or "defined" , I dont know Code: macro cominvk object,proc,[arg] { common if ~ arg eq reverse pushd arg common end if assert defined com.object.#object ; must be a COM object mov eax,[object] push eax mov eax,[eax] call [eax+object#.#proc] } who ever said humans are smarter than machines wasn't a programmer |
|||
17 Aug 2013, 17:20 |
|
bitRAKE 17 Aug 2013, 19:45
Those macros complement the interface macro. How have you defined psl and the object interface? Is it similar to the FASM download example?
assert is a control directive. defined is an operator. |
|||
17 Aug 2013, 19:45 |
|
machinecoder 18 Aug 2013, 02:49
Never mind, I downloaded the latest verion of FASM and it works !
Good stuff, just the code I needed. Although if you try and use it as a subroutine the call's return address gets corrupted and it wont return from the subroutine ,still works for me Just have to repeat the code twice, instead of calling it |
|||
18 Aug 2013, 02:49 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.