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.
vert TRIVERTEX 2 dup (<>)
It still gives me a syntax error...
Here is what it says:
error A2008: syntax error : vert
masm has made it without any problem both in .data and .code
sections.
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