flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Making Arrays of Struct in the Data section |
Author |
|
Tomasz Grysztar 03 Nov 2010, 20:29
There is actually a FAQ entry about this problem - look for "How to define an array of structures?".
|
|||
03 Nov 2010, 20:29 |
|
baldr 03 Nov 2010, 20:38
|
|||
03 Nov 2010, 20:38 |
|
kas 03 Nov 2010, 20:41
Tomasz Grysztar wrote: There is actually a FAQ entry about this problem - look for "How to define an array of structures?". Thanks for replying so quickly. I had forgotten all about the FAQ sheet in Documentation. What I had been doing instead was reading and re-reading and re-reading the manual - and searching the forum for the past couple of days. The problem within a problem (because I had already come across the rd sizeof.MyStruct*64 unitialised solution) - is that I want to initialise that struct and keep struct's nice dot naming. Hopefully the "rept" approach also mentioned in that FAQ will work. I'll try it out immediately. Thanks again, Kas. |
|||
03 Nov 2010, 20:41 |
|
Tomasz Grysztar 03 Nov 2010, 20:46
kas wrote: The problem within a problem (because I had already come across the rd sizeof.MyStruct*64 unitialised solution) - is that I want to initialise that struct and keep struct's nice dot naming. Hopefully the "rept" approach also mentioned in that FAQ will work. You may try to do it like: Code: rept 100 i { my#i MYSTRUC } |
|||
03 Nov 2010, 20:46 |
|
kas 03 Nov 2010, 20:55
Fantastic... I think that's the solution I've been trying to find.
Thank you again - and thank you Baldr for replying too. Kas. |
|||
03 Nov 2010, 20:55 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.