flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Struct offset (2 developers of fasm) |
Author |
|
Tomasz Grysztar 20 Aug 2004, 21:26
Code: virtual at si si_point CPoint end virtual mov si,point mov [si_point.z],12 You can use whatever label you want. |
|||
20 Aug 2004, 21:26 |
|
Alexandoros 20 Aug 2004, 23:11
ye,ye i know about this way, but how about 20 different struct and 4 registers (for example) = 80 virtual define? Too much.
Macro? - Only 1 name, possible many mistake, and code will be not so good readable. But its IMHO. I can not speak you what to do, but if future with local offset inside struct will be introduced - its will be very cool. |
|||
20 Aug 2004, 23:11 |
|
Tomasz Grysztar 20 Aug 2004, 23:39
When you want just the local offset, do the same what the "struct" macro does:
Code: virtual at 0 CPoint CPoint end virtual mov si,point mov [si+CPoint.z],12 |
|||
20 Aug 2004, 23:39 |
|
Alexandoros 22 Aug 2004, 05:07
Thx, its work.
|
|||
22 Aug 2004, 05:07 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.