flat assembler
Message board for the users of flat assembler.
Index
> Main > How to move value to structure? |
Author |
|
LocoDelAssembly 20 Jul 2008, 18:12
struc in fasm are an special case of macros actually so they not provide an actual type definition, yet, there is a well known workaround for it:
Code: struc Point{ .x dd ? .y dd ? } ;; Workaround virtual at 0 Point Point end virtual ; Now you can use the struc as an offset mov [ebp+Point.y], 7 |
|||
20 Jul 2008, 18:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.