flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Linux > 2 ways of declaring/creating a struct

Author
Thread Post new topic Reply to topic
komoco



Joined: 27 Sep 2017
Posts: 2
2 ways of declaring/creating a struct
What's the difference between these 2?


Code:

; 1
struct my_struct
    .a rw 1
    .b rw 1
    .c rb 1
    .d rb 1
ends

; 2
struct my_struct
    .a dw ?
    .b dw ?
    .c db ?
    .d db ?
ends





In particular, for Linux, if it matters.
Post 27 Sep 2017, 02:16
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15158
Location: GW170817
There is no difference. Both structures are exactly the same.
Post 27 Sep 2017, 03:03
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.