Keil Logo Arm Logo

Assembler User Guide

Optional hash

Optional hash

You do not need to specify a hash before immediate constants in any instruction syntax (including ARM, Thumb, and VFP instructions). For example, the following are valid instructions:

    BKPT 100
    MOVT R1, 256

By default, the assembler warns if you do not specify a hash:

WARNING: A1865W: ‘#’ not seen before constant expression.

This can be suppressed with --diag_suppress=1865.

If you use the assembler code with another assembler, you are advised to use the # before all immediates. The disassembler will always show the # for clarity.

Show/hideSee also

Reference
Copyright © 2007-2008, 2011-2012 ARM. All rights reserved.ARM DUI 0379D
Non-ConfidentialID062912

Keil logo

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.