flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > arrays in struct question |
Author |
|
LocoDelAssembly 28 Mar 2009, 17:33
The way I know is this one:
Code: struct rects rect rb 10*sizeof.RECT ends Don't know if there is something better. |
|||
28 Mar 2009, 17:33 |
|
IronFelix 28 Mar 2009, 18:04
Thank you, LocoDelAssembly. Next code work as i need, but don't know, how to apply it to struct:
Code: struc CHAR init { DONE equ NO match , init \{ . db ? \} match [count] , init \{ . db ? repeat count - 1 db ? end repeat restore DONE DONE equ YES \} match =NO any , DONE init \{ . db init \} restore DONE } virtual at 0 CHAR CHAR sizeof.CHAR = $ end virtual struc A { .bytearr CHAR [10] } virtual at 0 A A sizeof.A = $ end virtual a A ; next work correct mov eax,A.bytearr mov al,[a.bytearr] mov eax,sizeof.CHAR mov eax,sizeof.A Is it possible to extend struct with such thing? |
|||
28 Mar 2009, 18:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.