Skip to main content
Knowledgebase
Home
Renesas Singapore - Knowledgebase

Specifying even address in assembler program(CC-RL)

Last Updated:06/21/2017

Question:

I am writing a program using an assembler with RL78 compiler CC-RL.
How can I allocate the start address of a table to an even address?

Example:

_tablesym:

.DB2 0x1111,0x2222,0x3333,0x4444"

Answer:

Use the .ALIGN directive. Refer to the user’s manual for details.

CC-RL Compiler User’s Manual

5.2.4 Data definition/Area reservation directives

.ALIGN

Example:

.ALIGN 2

_tablesym:

.DB2 0x1111,0x2222,0x3333,0x4444

Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family