Is it possible to define a structure member as a structure by itself?
I mean something like this:

struc tests
.zbvx resd 1
.xzbxz resd 1
endstruc

struc reger
.dfsgfds tests
.dgfdsg resb 1
endstruc


I couldn't find anything regarding this neither in nasm's documentation nor google.

Also how about nested unions (nested within structure and not within another union), is there any painless ay to define them?
Posted on 2006-09-18 04:23:13 by arafel
Oups, never mind.
I don't need this anymore 8)
Posted on 2006-09-18 05:45:57 by arafel
I know you probably solved your own question, but I'll leave this up for search purposes.

Example from WINDOWS.INC in the NASM32 package...


STRUC POINT
.x RESD 1
.y RESD 1
ENDSTRUC

...

STRUC MSG
.hwnd RESD 1
.message RESD 1
.wParam RESD 1
.lParam RESD 1
.time RESD 1
.pt RESB POINT_size
ENDSTRUC
Posted on 2006-09-18 10:54:21 by SpooK