flat assembler
Message board for the users of flat assembler.
Index
> Main > [solved] struc error if sizeof. |
Author |
|
revolution 22 Aug 2020, 13:08
struc doesn't define anything else other than the structure itself.
Code: virtual at 0 ClassZi ClassZi ; instantiate sizeof.ClassZi = $ ; measure the size end virtual |
|||
22 Aug 2020, 13:08 |
|
Roman 22 Aug 2020, 13:22
Wow !
Thanks. Work. |
|||
22 Aug 2020, 13:22 |
|
revolution 23 Aug 2020, 03:59
Another way to give the length/size for each instantiation is this:
Code: struc foo arg { .begin = $ .text db `arg,0 sizeof.#. = $ - .begin } jim foo jim Roman foo Roman ;... mov ecx,sizeof.jim mov edx,sizeof.Roman |
|||
23 Aug 2020, 03:59 |
|
Roman 23 Aug 2020, 07:26
Thanks.
Very nice example ! |
|||
23 Aug 2020, 07:26 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.