flat assembler
Message board for the users of flat assembler.
Index
> Main > Can I declare a qqword label in struct? |
Author |
|
Tomasz Grysztar 14 Apr 2012, 18:37
No, currently the "struct" macro does not have such facilities. You would have to go with the low-level "struc" approach:
Code: struc Foo { label .bar qqword dq 4 dup ? } virtual at 0 Foo Foo end virtual vmovapd ymm0,[Foo.bar] |
|||
14 Apr 2012, 18:37 |
|
tripledot 14 Apr 2012, 18:40
Gotcha. I hardly ever use "struc"; I rely on "sizeof" quite a lot. I'll just grin and bear it, it was only a small gripe.
BTW, thanks for the latest version! Stupendously good service, as always! |
|||
14 Apr 2012, 18:40 |
|
l_inc 14 Apr 2012, 19:10
Another way is to define the label independently:
Code: struct Foo bar dq 4 dup ? ends label Foo.qqBar qqword at Foo.bar vmovapd ymm0, [Foo.qqBar] |
|||
14 Apr 2012, 19:10 |
|
tripledot 14 Apr 2012, 19:20
Aha! That I like. Thanks, l_inc!
|
|||
14 Apr 2012, 19:20 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.