Keil™, An ARM® Company

A166 User's Guide

DS Assembler Statement

Arguments
label〚:〛〛 DS expression
Description

The DS statement reserves the specified number of bytes in the current memory space. label is a symbol that is assigned the current memory address. expression is the number of bytes to reserve.

This statement reserves space and increments the location counter by the number of bytes reserved.

Note

  • If the DS statement is used in a bit section, bits instead of bytes are reserved.
See Also

DBIT, DSB, DSD, DSW

Example
GAP:    DS      (($ + 15) AND 0FFF0h) - $  ; 16-byte alignment
        DS      10
TIME:   DS      8