Keil Logo

SPACE Assembler Statement

<[>label:<]> SPACE expression

The SPACE statement reserves the specified number of bytes in the current memory space and initializes it to 0. label is a symbol that is assigned the current memory address. expression is the number of bytes to reserve.

After this statement reserves and clears memory it increments the location counter by the number of bytes reserved.

GAP:    SPACE  (($ + 15) AND 0FFFFFFF0h) - $  ; 16-byte alignment
        SPACE  10
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.