NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: Rideon7 on August 18, 2021, 03:55:27 PM

Title: Define a large vector and elegantly preallocate it?
Post by: Rideon7 on August 18, 2021, 03:55:27 PM
How do I fill a large data field with different values with or without times. So something like this: data_marks times 15, but in such a way that there are 15 different values in this data field.
For example a vector with vector + 0 = 1, vector + 1 = 2, vector + 3 = 4, vector + 4 = 8 and so on. How can I do this elegantly, for example in one line, without getting a misinterpretation by nasm? Thank you in advance