How can I declare an array of structures? I have tried to use the "dup" command, like this: code -------------------------------------- ... vert TRIVERTEX 2 dup() ... -------------------------------------- but it does not work. Can anybody tell me how this is done? Thanks.
Posted on 2001-02-18 16:56:00 by James
vert TRIVERTEX 2 dup (<>)
Posted on 2001-02-18 18:10:00 by The Svin
It still gives me a syntax error... Here is what it says: error A2008: syntax error : vert
Posted on 2001-02-18 18:14:00 by James
masm has made it without any problem both in .data and .code sections.
Posted on 2001-02-18 19:12:00 by The Svin
I would suggest changing the work vert to something else The systax error probably means that 'vert' is a reserved word; something like this

vert TRIVERTEX 2 dup()
mov TRIVERTEX 2 dup()   ;This wont work
xor TRIVERTEX 2 dup()   ;neither will this
stosb TRIVERTEX 2 dup() ;and same with this
Posted on 2001-02-18 23:19:00 by George