flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Layer on struct how do ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1938
Roman 10 Nov 2024, 17:44
For example we have struct TV_INSERTSTRUCT.

Code:
tvi           TV_INSERTSTRUCT ;I want all names from tvi do as _tvi.mask equ 
;normal variant
mov     [tvi.mask], TVIF_TEXT
mov     [tvi.pszText], _testTree
mov     [tvi.cchTextMax], 6

;my layered variant equ on struct.
;_tvi.mask equ mov     [tvi.mask],

_tvi.mask  TVIF_TEXT  ;this work in fasmw 1.73 I tested
_tvi.pszText  _testTree
_tvi.cchTextMax  6
    
Post 10 Nov 2024, 17:44
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1938
Roman 10 Nov 2024, 20:05
fasmw 1.73 can show all names struct ?
Did have fasmw 1.73 function for this ?
Lets say:
Code:
struct ABC
x1 dd 0
name db "0000"
color dd 0
ends

showNames ABC
;fasm display x1,name,color
    
Post 10 Nov 2024, 20:05
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20629
Location: In your JS exploiting you and your system
revolution 20 Nov 2024, 12:59
Roman wrote:
fasmw 1.73 can show all names struct ?
It can if you write a covering macro to define the struc.

See struct.inc in the download to see how that captures the lines of the definitions.
Post 20 Nov 2024, 12:59
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.