flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Need help on converting Masm's union! |
Author |
|
revolution 25 Jan 2009, 15:54
You can try this:
Code: struc IMAGE_SYMBOL { virtual N.ShortName rb 8 end virtual virtual N.Name1.Short1 dd ? N.Name1.Long1 dd ? end virtual N.LongName rd 2 Value dd ? SectionNumber dw ? Type1 dw ? StorageClass db ? NumberOfAuxSymbols db ? } |
|||
25 Jan 2009, 15:54 |
|
BiMode 27 Jan 2009, 11:48
Thx, I will try it.
|
|||
27 Jan 2009, 11:48 |
|
madmatt 29 Jan 2009, 05:48
you can also use the 'struct' macro, which also has a union macro
Example: Code: struct IMAGE_SYMBOL union N.ShortName rb 8 ends union N.Name1.Short1 dd ? N.Name1.Long1 dd ? ends N.LongName rd 2 Value dd ? SectionNumber dw ? Type1 dw ? StorageClass db ? NumberOfAuxSymbols db ? ends |
|||
29 Jan 2009, 05:48 |
|
sinsi 29 Jan 2009, 06:16
Unless you're going to access both parts, just make a struc for the one you do use.
|
|||
29 Jan 2009, 06:16 |
|
revolution 29 Jan 2009, 06:20
madmatt wrote: you can also use the 'struct' macro, which also has a union macro |
|||
29 Jan 2009, 06:20 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.