<<< Abbreviated Data Allocation Directives | Index | Symbol Table >>> |
Multiple definitions can be cumbersome to initialize data structures such as arrays
For example, to declare and initialize an integer array of 8 elements
values DW 0, 0, 0, 0, 0, 0, 0, 0
What if we want to declare and initialize to zero an array of a lot more elements?
Assembler provides a better way of doing this by DUP directive:
values DW 8 DUP (0)
<<< Abbreviated Data Allocation Directives | Index | Symbol Table >>> |