Probably should note that you've just got a "typedef" here - no memory allocated for it/them as yet.
Don't worry, everything is working just fine.
BTW. the last line of struct is good too, don't ever try to add "resb/w/d/q" or anything else there.
eg.
; next record of table
add rsi, RIZE_STRUCTURE_WINDOW.SIZE
so, this LABEL inside structure is what i need.
Your answer, error, nasm complain about "undefined symbols"
[...]
daemon/rize/window.asm:422: error: symbol `RIZE_STRUCTURE_WINDOW.x' undefined
daemon/rize/window.asm:423: error: symbol `RIZE_STRUCTURE_WINDOW.width_virtual' undefined
daemon/rize/window.asm:476: error: symbol `RIZE_STRUCTURE_WINDOW.x' undefined
daemon/rize/window.asm:571: error: symbol `RIZE_STRUCTURE_WINDOW.width_virtual' undefined
daemon/rize/window.asm:572: error: symbol `RIZE_STRUCTURE_WINDOW.height_virtual' undefined
daemon/rize/window.asm:597: error: symbol `RIZE_STRUCTURE_WINDOW.state_address' undefined
daemon/rize/window.asm:656: error: symbol `RIZE_STRUCTURE_WINDOW.width_virtual' undefined
daemon/rize/window.asm:661: error: symbol `RIZE_STRUCTURE_WINDOW.height_virtual' undefined
daemon/rize/window.asm:682: error: symbol `RIZE_STRUCTURE_WINDOW.width_virtual' undefined
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 1
cp: cannot stat 'build/kernel': No such file or directory
struc RIZE_STRUCTURE_OBJECT
.x resb 8
.y resb 8
.width_virtual resb 8
.height_virtual resb 8
.color_foreground resb 8
.state_address resb 8
.SIZE:
endstruc
struc RIZE_STRUCTURE_WINDOW
.RIZE_STRUCTURE_OBJECT resb RIZE_STRUCTURE_OBJECT.SIZE
.width resb 8
.height resb 8
.size resb 8
.status resb 1
.background_color resb 4
.border resb 1
.elements resb 8
.SIZE:
endstruc