Next: , Previous: , Up: Pseudo Ops   [Contents][Index]

7.17 .ds[size] number [,fill]

This directive emits number copies of fill, each of size bytes. Both number and fill are absolute expressions. If the comma and fill are omitted, fill is assumed to be zero. The size suffix, if present, must be one of:


Emits single byte values.


Emits 8-byte values.


Emits 4-byte values.


Emits 12-byte values.


Emits 4-byte values.


Emits 2-byte values.


Emits 12-byte values.

Note - unlike the .dcb directive the ‘.d’, ‘.s’ and ‘.x’ suffixes do not indicate that floating-point values are to be inserted.

If the size suffix is omitted then ‘.w’ is assumed.

The byte ordering is target dependent.