flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Need to know the type of parameter in a macro. |
Author |
|
LocoDelAssembly 27 May 2009, 19:24
Code: macro type [arg] { if arg eqtype 1.0 display "It's a float constant", 13, 10 else if arg eqtype 0 display "May be an address", 13, 10 else if arg eqtype [] display "It is an address", 13, 10 else display "It is something else", 13, 10 end if } type 1.0 type aLabel type 5 type [eax+ebx] aLabel: |
|||
27 May 2009, 19:24 |
|
madmatt 27 May 2009, 19:56
Yeh, thanks for the help, everything is working now.
|
|||
27 May 2009, 19:56 |
|
Madis731 28 May 2009, 12:03
Why not:
Code: struct D3DVECTOR x dd ? y dd ? z dd ? dummy dd ? ends ;Vector3 operator*(Vector3 v, Scalar a) macro MULTVECTORSCALAR vectora, fscalar { pshufd xmm0,dqword[fscalar],00000000b mulps xmm0,dqword[vectora + D3DVECTOR.x] movaps dqword[vectora + D3DVECTOR.x],xmm0 } MULTVECTORSCALAR blah1,blah2 or compatibility-issues? |
|||
28 May 2009, 12:03 |
|
madmatt 01 Jun 2009, 10:02
Thanks Madis731,
I do need to learn sse programming much better than I do now. |
|||
01 Jun 2009, 10:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.