'How do "arrays" work in assembly / How to allocate a block of memory in asm?
I am currently learning the basics of x86-64 assembly with MASM (and VS). When I want a block of memory thats 5 bytes big I can just do:
.data
myVar byte 1, 2, 3, 4, 5
However how do I get a block of memory that is n bytes (or qwords) long without having to manually type n numbers in the variable definition (in this case 1, 2, 3, 4, 5)?
Solution 1:[1]
Thank you @Jester, you answered my question. This works:
myVar byte 100 dup(0)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | DinosaurMoritz |
