flat assembler
Message board for the users of flat assembler.
Index
> Main > pointer to structure |
Author |
|
roticv 23 Jan 2004, 16:50
Code: virtual at eax ;assuming that eax contains the pointer to the structure .nothing do_nothing end virtual mov eax,[.nothing.lazy_men_counter ] If I am not wrong. |
|||
23 Jan 2004, 16:50 |
|
decard 23 Jan 2004, 17:03
You can use struct macro from struct.inc file (from both Fasm and Fresh packages):
Code: do_nothing struc{ lazy_men_counter dd ? lazy_woma_counter dd ? } struct do_nothing ; <---------- and now you can write: Code: mov ebx,[eax+do_nothing.lazy_man_counter] (assuming that eax contains pointer to your structure) regards |
|||
23 Jan 2004, 17:03 |
|
fasm9 23 Jan 2004, 22:36
Hi, still i considering a compiler written in FASM, but,
C#(vs.net, mono) produce il assembly, if (let me say this again, if) FASM understand il assembly, life is much easier. -- |
|||
23 Jan 2004, 22:36 |
|
HarryTuttle 25 Jan 2004, 00:10
Decard! Fantastyczne, dzięki za pomoc!
_________________ Microsoft: brings power of yesterday to computers of today. |
|||
25 Jan 2004, 00:10 |
|
BiDark 25 Jan 2004, 03:35
roticv wrote:
May be this? Code: virtual at eax eax.do_nothing do_nothing end virtual So you can access like this: Code: mov eax,[eax.do_nothing.members] |
|||
25 Jan 2004, 03:35 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.