flat assembler
Message board for the users of flat assembler.
Index
> Windows > Few questions of syntax questions |
Author |
|
Madis731 26 Jan 2006, 14:18
1a)
Code: some_structure: ... end_of_structure some_structure.size=$-some_structure ;OR sizeof.some_structure=$-some_structure 1b) NO - only macros that do the same as 1a 2a) Code: imul edx,[RandSeed],08088405H 2b) EDX |
|||
26 Jan 2006, 14:18 |
|
Tomasz Grysztar 26 Jan 2006, 17:14
As for the 1a, it think it was rather this that he wanted:
Code: LCDBITMAPINFO BITMAPINFOHEADER sizeof.BITMAPINFOHEADER which sets up [LCDBITMAPINFO.biSize] with value sizeof.BITMAPINFOHEADER. |
|||
26 Jan 2006, 17:14 |
|
RedGhost 27 Jan 2006, 03:03
Tomasz Grysztar wrote: As for the 1a, it think it was rather this that he wanted: didn't know fasm could dynamically initiate struct members like that on declaration (is there anything this damn assembler cant do yet ) ... i tend to just write out the structures manually and do what Madis suggested, like i needed a PROCESSENTRY32 structure last night but only two of the parameters Code: _PROCESSENTRY32: dd _PROCESSENTRY32.size ;initialize .dwSize (required) dd ? .th32ProcessID dd ? rd 6 .szExeFile rb 260 ;MAX_PATH _PROCESSENTRY32.size = $-_PROCESSENTRY32 and i would just reference _PROCESSENTRY32.whatever, but that style isnt very dynamic _________________ redghost.ca |
|||
27 Jan 2006, 03:03 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.