I've read the documentation of Fasm, but I can't figure out this. In Nasm I'd first declare a struct in ".bss" and then define it in ".data":
section ".bss"
struc my_struct
.a resw 1
.b resw 1
.c resb 1
.d resb 1
endstruc
section ".data"
my_struct_var1 istruc my_struct
at my_struct.a, dw 123
at my_struct.b dw, 0x123
at my_struct.c db, "fdsfds"
at my_struct.d db 2222
endstruc
How can I do this in FASM exactly?
; declaring
struct my_struct
.a rw 1
.b rw 1
.c rb 1
.d rb 1
ends
; or maybe this way?
; what's the difference between these 2?
struct my_struct
.a dw ?
.b dw ?
.c db ?
.d db ?
ends
1) Firstly, is that correct? Or should I use the macros "sturc { ... }" If so, how exactly?
2) Second, how can I initialize it in ".data"?
3) also there's a question in my code
Note it's an application for Linux 64