flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Virtual block and macro.

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1718
Roman 15 Jun 2024, 08:00
Fasmw 1.73
Code:
Virtual at 0
Code1:: 
        mov ecx,"!"
.1:     call proc1   
        dec ecx
        jnz .1
.data  
end virtual

;in code
macro MutblC ka,e { repeat ka#.data 
                 load dc byte from ka:%-1
                 if dc = "!"
                    dc = e
                 end if
                 db dc
                 end repeat
      }
MutblC Code1,40
    

I can do one byte.
But how do, if i want ecx = 200000 or ecx=[from data] ?
Post 15 Jun 2024, 08:00
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20212
Location: In your JS exploiting you and your system
revolution 15 Jun 2024, 09:55
Code:
load dc dword from ...    
Post 15 Jun 2024, 09:55
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1718
Roman 15 Jun 2024, 10:01
But how about code virtual block size ?
I thinked must be byte, but not load dword.
Post 15 Jun 2024, 10:01
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20212
Location: In your JS exploiting you and your system
revolution 15 Jun 2024, 10:05
Code:
repeat ka#.data - 3    
Post 15 Jun 2024, 10:05
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.