399
APPENDIX D Notes on Using Little Endian Areas
D.2
Assembler (fsm911)
The following two items require caution when using little endian areas during
programming in FR-series Assembler:
• Sections
• Data Access
■
Sections
Little endian areas are allocated primarily for data exchange data with little endian type CPUs.
Therefore, define little endian areas as data sections that store no initial value.
If a little endian area is specified as data section storing a code or initial stack value, the result
of an access by the MB91F109 cannot be guaranteed.
[Example]
/* Correct definition of endian area as a section*/
.SECTION Little_Area, DATA, ALIGN=4
Little_Word:
.RES.W 1
Little_Half:
.RES.H 1
Little_Byte:
.RES.B 1
■
Data Access
When accessing data in a little endian area, the data value can be coded independently of the
endian area. However, specify a size matching the size of the data when accessing the data of
the little endian area.
[Example]
LDI #0x01020304, r0
LDI #Little_Word, r1
LDI #0x0102, r2
LDI #Little_Half, r3
LDI #0x01, r4
LDI #Little_Byte, r5
Summary of Contents for MB91F109
Page 2: ......
Page 3: ...FUJITSU LIMITED FR30 32 Bit Microcontroller MB91F109 Hardware Manual ...
Page 4: ......
Page 10: ...vi ...
Page 24: ...xx ...
Page 96: ...72 CHAPTER 2 CPU ...
Page 224: ...200 CHAPTER 4 BUS INTERFACE ...
Page 234: ...210 CHAPTER 5 I O PORTS ...
Page 268: ...244 CHAPTER 9 U TIMER ...
Page 290: ...266 CHAPTER 10 UART ...
Page 314: ...290 CHAPTER 12 16 BIT RELOAD TIMER ...
Page 322: ...298 CHAPTER 13 BIT SEARCH MODULE ...
Page 392: ...368 CHAPTER 16 FLASH MEMORY ...
Page 432: ...408 APPENDIX E Instructions F Table E 2 Instruction Formats OP rel11 5 11 ...
Page 448: ...424 APPENDIX E Instructions ...
Page 449: ...425 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 458: ...434 INDEX ...
Page 460: ......
Page 461: ...FUJITSU SEMICONDUCTOR FR30 32 Bit Microcontroller MB91F109 Hardware Manual ...