flat assembler
Message board for the users of flat assembler.
Index
> Windows > [solved] NMHDR NMBCDROPDOWN etc |
Author |
|
bitRAKE 26 Aug 2020, 16:59
mov [r9+NMHDR.code]
if the offsets for the structure is not defined, then: Code: virtual at 0
NMHDR NMHDR
end virtual _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
26 Aug 2020, 16:59 |
|
Overclick 26 Aug 2020, 18:10
Nice thanks
|
|||
26 Aug 2020, 18:10 |
|
Roman 26 Aug 2020, 18:18
What if struct do like this ? :
Code: StrucName.code EQU 16 StrucName.idFrom EQU 8 |
|||
26 Aug 2020, 18:18 |
|
Overclick 26 Aug 2020, 18:29
Roman, NMHDR is already in fasm includes but why not. I was looking for some universal metod to do it once for all.
|
|||
26 Aug 2020, 18:29 |
|
bitRAKE 26 Aug 2020, 19:22
Code: virtual at r9 nmhdr NMHDR end virtual mov eax,[nmhdr.code] _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
26 Aug 2020, 19:22 |
|
Overclick 26 Aug 2020, 19:36
bitRAKE, Will it take current r9 every time? Then it is awesome!
|
|||
26 Aug 2020, 19:36 |
|
revolution 26 Aug 2020, 22:52
If I have a structure instantiation that uses a fixed register I like to show it in the name to avoid confusion and to help me six months later when I come back to the code.
Code: virtual at r9 nmhdr@r9 NMHDR end virtual |
|||
26 Aug 2020, 22:52 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.