First page Back Continue Last page Overview Graphics

Assembler Directives: ds.b


A programmer might also wish to create variables whose initial values are not defined or unknown. The value could be initially undefined because the corresponding variable will hold the value of a measurement that will be obtained from a sensor when the program runs. It could be unknown because the value of the variable is to be calculated by the program.

The ds.b directive reserves uninitialized blocks of memory that may be filled in at run time. Memory locations for any variables whose values are undefined or unknown until run time should be assigned using this directive.