I need to declare a dword array of an undetermined size, how do I do this in x86 assembly?
typically to declare a dword array you would use:
iNumsArray dword 10 dup(?)
But if I need to continuously prompt the user for an infinite amount of integers, until the user types -1, I will need a dword array of an indeterminate size. I suppose one way of accomplishing this would be to push all of the dwords into the stack, keep a count on bytes(+4 each time), and then pop that amount of bytes off the stack and store into array, but that's terribly complicated.
Perhaps you can allocate the mutable array with iNumsArray dword ? dup(?)
?
Where the first question mark is though you typically put the number of dwords, aka the length of the array, how do I allocate this without specifying a length?