Hello,
I tried to find out how to access elements of a structure inside a structure. I defined the following (it's just a silly example)
struct PARENT
.name rb 100
.mumordad dd ?
ends
struct PERSON
.mum PARENT
.dad PARENT
.name rb 100
.age dd ?
ends
As you can see, mum and dad are PARENT structs inside the person struct. I defined a person and now want to access the mum/dad data inside:
lea ebx,[myself]
mov ecx,0 ;0=mum
mov [ebx+PERSON.mum.mumordad],ecx
(...)
myself PERSON
It compiled - but I wanted to ask if this is the right way? Or did I code shit?
An answer would be kind, thank you in advance
denial