You copied the Doc URL to your clipboard.

Space-filling directives

The .space directive emits count bytes of data, each of which has value value. If the value argument is omitted, it defaults to zero.

Syntax

.space count [, value]
.fill count [, size [, value]]

Description

.space

The .space directive emits count bytes of data, each of which has value value. If the value argument is omitted, it defaults to zero.

The .skip and .zero directives are aliases for the .space directive.

.fill

The .fill directive emits count data values, each with length size bytes and value value. If size is greater than 8, it will be truncated to 8. If the size argument is omitted, it defaults to one. If the value argument is omitted, it defaults to zero.

The .fill directive always interprets the value argument as a 32-bit value.

  • If the size argument is less than or equal to 4, the value argument is truncated to size bytes, and emitted with the appropriate endianness for the target. The assembler does not emit a diagnostic if value is truncated in this case.
  • If the size argument is greater than 4, the value is emitted as a 4-byte value with the appropriate endianness, in 4 bytes of the allocated memory with the lowest addresses. The remaining bytes in the allocated memory are then filled with zeroes. In this case, the assembler does emit a diagnostic if the value is truncated.
Was this page helpful? Yes No