flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > uses this is value for macro proc ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 2048
Roman 02 Feb 2026, 10:36
Fasmw 1.73.
uses this is fasm command or only parameter for macro proc ?
Code:
proc WindowProc stdcall uses ebx esi edi
ret
endp
    
Post 02 Feb 2026, 10:36
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1770
Location: Toronto, Canada
AsmGuru62 02 Feb 2026, 17:40
It is a parameter for macro proc.
Post 02 Feb 2026, 17:40
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20859
Location: In your JS exploiting you and your system
revolution 03 Feb 2026, 12:32
The uses clause is defned by the proc macro. It generates multiple push instructions. And ret generates multiple pop instructions in reverse.
Code:
use32
include 'macro/proc32.inc'
jmp foo
proc foo uses eax ebx ecx edx esi edi ebp esp
endp
    
Code:
00000000  EB00              jmp short 0x2
00000002  50                push eax
00000003  53                push ebx
00000004  51                push ecx
00000005  52                push edx
00000006  56                push esi
00000007  57                push edi
00000008  55                push ebp
00000009  54                push esp    
And with ret
Code:
use32
include 'macro/proc32.inc'
jmp foo
proc foo uses eax ebx ecx edx esi edi ebp esp
        ret
endp    
Code:
00000000  EB00              jmp short 0x2
00000002  50                push eax
00000003  53                push ebx
00000004  51                push ecx
00000005  52                push edx
00000006  56                push esi
00000007  57                push edi
00000008  55                push ebp
00000009  54                push esp
0000000A  5C                pop esp
0000000B  5D                pop ebp
0000000C  5F                pop edi
0000000D  5E                pop esi
0000000E  5A                pop edx
0000000F  59                pop ecx
00000010  5B                pop ebx
00000011  58                pop eax
00000012  C3                ret    
Post 03 Feb 2026, 12:32
View user's profile Send private message Visit poster's website 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-2026, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.