Next: , Previous: Dcb, Up: Pseudo Ops


7.15 .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:

.b
Emits single byte values.
.d
Emits 8-byte values.
.l
Emits 4-byte values.
.p
Emits 12-byte values.
.s
Emits 4-byte values.
.w
Emits 2-byte values.
.x
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.