flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > How macro icreased num xmm reg ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1821
Roman 26 Nov 2022, 11:58
Fasmw 1.73
I try this but fasm error.
Code:
macro xmout_ aa,[ar] {
      i = aa
      forward
      movss xmm#i,ar
      i = i + 1
      }  
xmout_ 8,xmm3 ;error movss xmmi,xmm3. Must be movss xmm8,xmm3
    

I do this. Work.
Code:
macro xmout_ aa , [ar] {
__ee equ aa
__i equ 0     
      forward
      __ar equ ar      
      __i equ __i+1
      common      
      rept __i n:__ee \{ reverse movss xmm\#n, __ar
       restore __ar
      __ee equ n+1
      \}     
      }  
xmout_ 8,xmm3,xmm2,xmm1
    
Post 26 Nov 2022, 11:58
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.