flat assembler
Message board for the users of flat assembler.

Index > Main > Struct Dup

Author
Thread Post new topic Reply to topic
lovefasm



Joined: 17 Jun 2007
Posts: 22
lovefasm
x db 10 dup (0)
y dd 100 dup (?)



table StructName 10 dup (?)
How to do that?
Post 30 Jul 2007, 13:13
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1155
ManOfSteel
Are you trying to fill the structure or am I misunderstanding something?

Code:
struct teststruct
x db 10 dup (?)
y dd 100 dup (?)
ends

table teststruct 1,10 dup ('AA')
    


This will give you '0x01' then 9 empty bytes (teststruct 1) ; and ten times '0x41,0x41,0,0' then 90 empty dwords (10 dup ('AA')).

Hope this helps.
Post 01 Aug 2007, 08:10
View user's profile Send private message 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


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.