Skip to main content
Renesas Electronics America - Knowledgebase

Format of constants in assembly (CC-RL)

Last Updated:04/17/2017


I am using the assembler that comes with the CC-RL RL78 compiler for programming in assembly. The user's manual states that constants must start with a numeral rather than a letter (A to F). However, do still I need to include a “0” as a prefix if the first hexadecimal digit is a letter, even if the value is in the notation with the prefix 0x?


When the actual value has the prefix 0x, the following character need not be a numeral.
That is, numerical values with this prefix do not require a further numeral as a prefix.
For example, the notation will be as follows in the case of the hexadecimal number AH (decimal 10).
・0AH ← 0 is required before A
・0xA ← 0 is not required before A
Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family
  • Was this article helpful?