flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > many macros from one macro

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1701
Roman 25 Jan 2024, 07:16
fasmw 1.73
Code:
macro madd xm { addss xmm#xm,xmm#xm}

macro subXZ xm,p1,p2 {
      movss xmm#xm,[p1]
      subss xmm#xm,[p2]
      }

macro xmmany xm,[m,p] {
      m   xm,p
      }
data:     p1 dd 10.0
          p2 dd 2.0

Start:   xmmany 0,subXZ <p1,p2> ,madd 
    


Fasm error: movss xmmp1 0,p2,[]
Post 25 Jan 2024, 07:16
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 909
Location: Russia
macomics 25 Jan 2024, 09:03
Code:
;Start:   xmmany 0,subXZ <p1,p2> ,madd 
; label   name  xm[ m              p  ]

; label   name  xm[  m      p   ][  m   p]
Start:   xmmany  0,subXZ,<p1,p2> ,madd,    
Post 25 Jan 2024, 09:03
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1701
Roman 25 Jan 2024, 09:29
Thanks.
Now work.
Post 25 Jan 2024, 09:29
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.