flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > [FIXED]At least one macro has this bug (cominvk) |
Author |
|
revolution 21 Oct 2012, 07:19
|
|||
21 Oct 2012, 07:19 |
|
hopcode 21 Oct 2012, 09:00
toching the Mod/RM is not good. wher the dot is a special beast of symbol.
Code: ;--- call com method ;--- .pUnk->QueryInterface macro @comcall argmeth{ match p->meth,argmeth\{ mov rcx,[p] mov rax,[rcx] sub rsp,20h call [rax+p\#.\#meth-p] add rsp,20h \} } _________________ ⠓⠕⠏⠉⠕⠙⠑ |
|||
21 Oct 2012, 09:00 |
|
Tomasz Grysztar 21 Oct 2012, 09:39
This macro did not work at all with dotted labels. But please try with the new version in updated fasmw 1.71.05 package I just uploaded.
|
|||
21 Oct 2012, 09:39 |
|
hopcode 21 Oct 2012, 10:00
Tomasz Grysztar wrote: This macro did not work at all with dotted labels. But please try with the new version in updated fasmw 1.71.05 package I just uploaded. before suggesting people to use your macro, fasm should be featured to handle this case. Code: handle equ rbp+16 if handle eqtype rax | handle eqtype 0 display "feature enhanced fasm" ;<--- never displayed end if and that is not an option. because with COM almost all is stack-based. _________________ ⠓⠕⠏⠉⠕⠙⠑ |
|||
21 Oct 2012, 10:00 |
|
hopcode 21 Oct 2012, 10:05
ah,yes, the else branch too.
ok _________________ ⠓⠕⠏⠉⠕⠙⠑ |
|||
21 Oct 2012, 10:05 |
|
Tomasz Grysztar 21 Oct 2012, 10:43
hopcode: if you report a bug, please try to make it a bit more clear. It took me a while before I realized that you were reporting a problem with making a "comcall rbp+16,..." type calls.
|
|||
21 Oct 2012, 10:43 |
|
hopcode 21 Oct 2012, 11:21
Tomasz Grysztar wrote: ...a problem with making a "comcall rbp+16,..." type calls. Code: macro comcall handle,interface,proc,[arg] _________________ ⠓⠕⠏⠉⠕⠙⠑ |
|||
21 Oct 2012, 11:21 |
|
hopcode 21 Oct 2012, 11:28
hopcode wrote: ...eventual problems are others. but i cannot find it now on board. i posted some solutions concerning nesting of interfaces. _________________ ⠓⠕⠏⠉⠕⠙⠑ |
|||
21 Oct 2012, 11:28 |
|
Tomasz Grysztar 21 Oct 2012, 11:36
Then I don't know what you had in mind, but still you brought my attention to the case when "handle" parameter for "comcall" macro was register-based label. It looks like a rare usage scenario, but I made it work anyway.
|
|||
21 Oct 2012, 11:36 |
|
rohagymeg 21 Oct 2012, 11:47
Anyways, it now works. Thanks for the fix, Tomasz!
|
|||
21 Oct 2012, 11:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.