flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Fasmg can do this ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 2053
Roman 14 May 2026, 08:07
I read about calm in fasmg.

I want write macro get 5 last registers.
Example
Code:
macro aa { inc 1
dec 2 
add 3,2 }

;in code 
mov eax,2
mov ecx,4
mov esi,44
aa 3 ; get inc eax
        ; dec ecx
        ; add esi,ecx

mov edx,[some value]
mov ebx,esi
aa 2 ; get inc edx
        ; dec ebx
        

    
Post 14 May 2026, 08:07
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4470
Location: vpcmpistri
bitRAKE 14 May 2026, 09:42
Your task is under specified, but the rough version is possible with calminstructions.

fasmg's operands resolution are calminstructions.

_________________
¯\(°_o)/¯ AI may [not] have aided with the above reply.
Post 14 May 2026, 09:42
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.