🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.asm.x86
Article #127

[TASM] struc in a struc and curly brackets

#127
From: debreczeni peter
Date: Wed, 12 Aug 1998 00:00
51 lines
2156 bytes
hi

i have two structures, like:

row_t struc
 flags dd ?
 note dd ?
ends

pattern_t struc 
 flags dd ?
 bpm dd ?
 rows row_t <>
ends


ok.. and when i declare a pattern, like:

pat01 pattern_t <1234h, 230, <1,2>> 
tasm says need expression
i tried a lot of versions varying with ?'s and <>'s but i couldn't get
tasm to compile it

also there's another one:

if i say 
blabla_t struc
 huhu db ?
 haha db ?,?
         ?,?
ends

and

bla1 blabla_t <1,2,3>

2 will be the assigned to the first ? after haha, and 3 to the one in
the 2nd line... so there will the 2 other bytes won't be initialized...
how do i assign a value to them?

ok... and the third problem is:

my pattern struc is too big and i can't assemble using \-s, because it
also says line too long. the doc says to use { and },
but i can't get it to work with strucs, only enums. it also says need
expression...huh?

--
cranx/rhyme
cranx@scene-hu.com
rhyme.scene-hu.com
Technical Details
Message-ID: <6qs39a$fbk$1@winter.news.erols.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fe306,8bf03c1551afe314,start
X-Google-Attributes: gidfe306,public
X-Google-Thread: 145eff,8bf03c1551afe314,start
X-Google-Attributes: gid145eff,public
X-Google-Thread: feaef,8bf03c1551afe314,start
X-Google-Attributes: gidfeaef,public
X-Google-Thread: 11905e,8bf03c1551afe314,start
X-Google-Attributes: gid11905e,public
X-Google-Thread: f7d8d,8bf03c1551afe314,start
X-Google-Attributes: gidf7d8d,public
X-Google-Thread: 114917,8bf03c1551afe314,start
X-Google-Attributes: gid114917,public
From: debreczeni peter <go@spam.your.mother>
Subject: [TASM] struc in a struc and curly brackets
Date: 1998/08/12
Message-ID: <6qs39a$fbk$1@winter.news.erols.com>
X-Deja-AN: 380380895
Content-Transfer-Encoding: 7bit
Approved: <johnfine@erols.com>
Content-Type: text/plain; charset=us-ascii
X-Mozilla-Status: 0801
X-Complaints-To: abuse@rcn.com
X-Trace: winter.news.erols.com 902926442 15732 207.172.240.250 (12 Aug 1998 12:54:02 GMT)
Organization: MatavNet
Mime-Version: 1.0
Newsgroups: comp.lang.asm.x86,borland.public.tasm,alt.lang.asm,rec.games.programmer,de.comp.lang.assemble,comp.os.ibm.pc.demos