flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Main > Syntax problem? | 
  
| Author | 
  | 
              
| 
                  
                   dead_body 13 May 2006, 18:25 
                  invoke Get2Numbers, dword [edi], eax 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   UCM 13 May 2006, 19:16 
                  its not invoke, its stdcall since invoke is for Win32 api functions.
 
                  
                stdcall has the same syntax, just replace invoke with stdcall.  | 
              |||
                  
  | 
              
| 
                  
                   moriman 13 May 2006, 19:31 
                  Thx UCM  
                  
                dead_body) It is more helpful if you read the OP Quote: 
  | 
              |||
                  
  | 
              
| 
                  
                   okasvi 13 May 2006, 22:46 
                  UCM wrote: its not invoke, its stdcall since invoke is for Win32 api functions. nope, try Code: _Get2Numbers rd 1 push dword Get2Numbers pop dword [_Get2Numbers] invoke _Get2Numbers,param,param 'invoke function' does 'call [function]' while 'stdcall function' does 'call function' _________________ When We Ride On Our Enemies support reverse smileys |:  | 
              |||
                  
  | 
              
| 
                  
                   moriman 14 May 2006, 00:19 
                  I changed my call from invoke to stdcall as suggested by UCM and everything is working fine for me¿ 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   UCM 15 May 2006, 21:22 
                  okasvi: yes, i know that. but it's less efficient (and pointless.)
 
                  
                you could just do this: Code: _Get2Numbers dd 90909090h ;so that it can be executed  | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.