flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
baldr 17 Nov 2010, 23:03
alorent,
assume macro from MACRO\MASM.INC is limited to assume reg:struct syntax. Let's see, pList is a pointer to structure? x86 doesn't support double indirection, you have to put pointer in register beforehand (then assume becomes useful). |
|||
![]() |
|
alorent 18 Nov 2010, 12:46
Thanks baldr.
Well, it seems that the following is accepted (at least with latest FASM): Code: assume list_member:my_struct mov eax, [list_member.Member1] Thanks! |
|||
![]() |
|
baldr 18 Nov 2010, 17:51
alorent,
list_member should be address of my_struct then, not address of pointer to it. You may think of assume as type cast. That's my favorite part: there are ways thing is supposed to be used, and much more ways thing can be used (some of them are productive too). ![]() |
|||
![]() |
|
alorent 19 Nov 2010, 05:49
Thanks for clarifying that baldr!
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.