flat assembler
Message board for the users of flat assembler.

Index > Main > Proc local names problem.

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1766
Roman 07 Jun 2022, 16:48
In fasmw 1.73 i used procs.
Sometimes I need change local names.

Code:
Proc a level:dword, life:dword
   mov eax,[life]
   ret
endp
    

If i want change in proc A life to lifeTom i need rewrite this name in my proc A.
mov eax,[lifeTom]
How this do easy and automatically change this name in proc A without rewrite names ?

Using EQU ?
Code:
Proc a level:dword, life:dword
p1 EQU life
   mov eax,[p1]
   ret
endp
    
Post 07 Jun 2022, 16:48
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20299
Location: In your JS exploiting you and your system
revolution 07 Jun 2022, 16:52
CTRL-H?

Search and replace.
Post 07 Jun 2022, 16:52
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1766
Roman 07 Jun 2022, 17:02
Not handful. Search and replace.
In my code more than 100 procs.
And might be mistake replace in another proc name.
Post 07 Jun 2022, 17:02
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 926
Location: Russia
macomics 07 Jun 2022, 17:29
Select the entire proc before replacement and check the box - "only in the selected text". If your editor doesn't have one, then it's worth changing it.


Description:
Filesize: 96.4 KB
Viewed: 2720 Time(s)

ReplaceSel.png


Post 07 Jun 2022, 17:29
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1766
Roman 07 Jun 2022, 19:26
I using standard fasm text editor.

Я пользуюсь родным фасм редактором текста.
Скачал фасм и сразу пишешь код.
Текстовых редакторов очень много.
Долго искать хороший. И еще вникать требуется время в возможности самого текстового редактора.

Вроде хвалят часто sub lime text editor и vs code.
Но у этих редакторов очень много настроек и еще скрипты есть.

А что это за скриншот ? Какой это редактор ?
Post 07 Jun 2022, 19:26
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 926
Location: Russia
macomics 07 Jun 2022, 19:46
gedit (GNOME) / mousepad (version for AltLinux)
highlight
Post 07 Jun 2022, 19:46
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.