flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > com64.inc comcall. A bug or not a bug?

Author
Thread Post new topic Reply to topic
l_inc



Joined: 23 Oct 2009
Posts: 881
l_inc
Hello, everybody,

there's a (probably copy-paste) mistake within the com64.inc. The macro comcall should not push an object handle onto the stack. Thus instead of
Code:
    macro call dummy
    \{ if handle eqtype rax | handle eqtype 0
      push handle
 local ..handle
      label ..handle at handle
    mov rax,[..handle]
       else
   mov rax,handle
      mov rax,[rax]
       end if
       call [rax+interface#.#proc] \}
    

there should be
Code:
    macro call dummy
    \{ if handle eqtype rax | handle eqtype 0
  local ..handle
      label ..handle at handle
    mov rax,[..handle]
       else
   mov rax,handle
      mov rax,[rax]
       end if
       call [rax+interface#.#proc] \}
    

This bug was discovered about a year ago by one of participants of another assembler related forum, but obviously was not reported here. I assume this little modification may be included into the next fasm release package.

Best regards
Post 23 Sep 2011, 12:16
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.