I need to initialize an array of structure in .DATA part of the program. Most are initialized with zero but I need to set up order number. Can I do that in .DATA part with using a register that stores DUP operator to initialize the order number of array elements. Or is there another way beside using loops in .CODE part of the program.
Here is the example program, during the initialization of three each NODEi_KEY must be set to 1..20. The project demands that it be set in .DATA part, if it's not possible it may be a typo.
.DATA
NODE STRUCT
NODEi_KEY DWORD ?
NODEi_VALUE DWORD 0
NODE ENDS
THREE NODE 20 DUP ({,,})