flat assembler
Message board for the users of flat assembler.
Index
> Main > reserve or declare |
Author |
|
MichaelH 22 Dec 2007, 10:32
times 256 db 'a'
or - db 512 dup "b" or as a last resort after every other avenue has been tried and failed - read the fasm documentation |
|||
22 Dec 2007, 10:32 |
|
revolution 22 Dec 2007, 10:41
rb and db are mostly the same. rb will reserve bytes with a value of 0. But the main difference is when fasm writes the file, the reserved spaces at the end of each section are not written to disk, thus saving disk space.
Code: ... rb 1 shl 20 ;reserve 1meg space .end start Code: ... rb 1 shl 20 ;reserve 1meg space db 0 .end start |
|||
22 Dec 2007, 10:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.