Hi,
I've got a struc, call it A, and I want to base 3 other struc's on A.
So for instance B will have all the elements and labels of A, plus one more.
C will have all the elements and labels of A, plus 2 more.
D will have all the elements and labels of A, plus 3 more.
I don't want to have to separately define B, C, and D repeating all of A's elements and labels.
Is there such a thing as saying
struc A
.label1 resw 1
.label2 resw 1
.label3 resb 1
endstruc
struc B : A
.foo resb 1
endstruc
Etc...
Such that I can refer to:
mov rsi, (address of a B struc)
movsx rax, byte [rsi + B.label3]
If NASM doesn't have this, does YASM?