flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
machinecoder
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 ![]() |
|||
![]() |
|
bitRAKE
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. |
|||
![]() |
|
machinecoder
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 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.