flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
macomics 21 Jun 2022, 19:31
Try this:
Code: macro fmem mOut*, mInp*, [args] { common movss xmm1, mInp if ~ args eq forward match =+X, args \{ addss xmm1, X \} match =-X, args \{ subss xmm1, X \} match =*X, args \{ mulss xmm1, X \} common end if movss [mOut], xmm1 } |
|||
![]() |
|
Roman 21 Jun 2022, 19:44
Thanks work
Code: macro fmem mOut*, mInp*, [args] { common movss xmm1, [mInp] forward match =+X, args \{ addss xmm1, [X] \} match =-X, args \{ subss xmm1, [X] \} match =*X, args \{ mulss xmm1, [X] \} common movss [mOut], xmm1 } fmem outMem,inMem,+mem1,*mem2,-mem3+4 |
|||
![]() |
|
Roman 21 Jun 2022, 20:03
I try this, but error movss xmm/2
Code: macro fmem mOut*, mInp*, [args] { common movss xmm1, [mInp] forward match =+X, args \{ addss xmm1, [X] \} match =-X, args \{ subss xmm1, [X] \} match =*X, args \{ mulss xmm1, [X] \} match =/X, args \{ divss xmm1, [X] \} match =|X, args \{ movss xmm/X,xmm1 \} ;this error common movss [mOut], xmm1 } fmem outMem,inMem,+mem1,*mem2,-mem3,+mem1+8,|2 Last edited by Roman on 21 Jun 2022, 20:20; edited 1 time in total |
|||
![]() |
|
Roman 21 Jun 2022, 20:19
Now i do this. work fine
Code: macro fmem mOut*, mInp*, [args] { common movss xmm1, [mInp] forward match =+X, args \{ addss xmm1, [X] \} match =-X, args \{ subss xmm1, [X] \} match =*X, args \{ mulss xmm1, [X] \} match =/X, args \{ divss xmm1, [X] \} match =|X, args \{ movss X,xmm1 \} match =&+X, args \{ addss xmm1,X \} match =&-X, args \{ subss xmm1,X \} match =&*X, args \{ mulss xmm1,X \} match =&/X, args \{ divss xmm1,X \} common movss [mOut], xmm1 } fmem outMem,inMem,+mem1,*mem2,-mem3,+mem1+8,|xmm2,/mem1,&+xmm2,&-xmm2,&/xmm2 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.