flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > help me for ...

Author
Thread Post new topic Reply to topic
luckystar



Joined: 23 Mar 2004
Posts: 8
luckystar
Code:
macro proc  name,[param]
{
    common
    local  index
    index = 2
name:
     reverse
     param  equ    ebp + index * 4
     index = index + 1

    common
 }

proc   wndproc,hWnd,uMsg,wParam,lParam
      mov     eax,[hWnd]              ;1 line
     mov     eax,[uMsg]               ;2 line
    mov     eax,[wParam]           ;3 line
      mov     eax,[lParam]            ;4 line

 push   _lParam
      push    _wParam
     push    _uMsg
       push    _hWnd
       call   wndproc
    


;1-4 line will same code,why?What I to do?
Post 14 Nov 2007, 07:42
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
next time use [code] tags around your code, to make it readable
Post 14 Nov 2007, 12:26
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Mr_Silent



Joined: 25 Apr 2006
Posts: 30
Mr_Silent
Code:
macro proc  name,[param]
{ 
    common 
    local arg
    arg equ ebp+4
name: 
     reverse 
     arg equ arg+4
     param equ arg

    common 
 }
    
Post 14 Nov 2007, 13:39
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 GitHub, YouTube, Twitter.

Website powered by rwasa.